Add buttons to remove emails and phone numbers

Also moved the javascript for the edit profile page to a separate file,
for better organization.