Added a master template for functions related to user profile editing. Also created changeEmail template and underlying behaviour.