If you get the gift of a new device for the holidays, or if you're looking to get rid of an old one, here's what to do first.