move primary_user_email method from PagesController to ApplicationController so its avavailable at users/sign_in
configure mailer for dev and production environments

change production mailer domain env variable

repair action mailer for production