Is It Legal to Melt US Coins?

What US rules say about melting coins: the restriction on cents and nickels, why silver coins are treated differently, and what it means for collectors.