Here's how Halloween went from a day of demons and turnips to a festival of costumes and candy