Modify user registration to work with Devise

- Modify user registration to work with Devise implementation

- Use custom mailer class instead of Devise to send confirmation mails