Refactoring and converted to haml
Refactor session data and configured mandrill for mailer