added user registration mailer
added initial resource authorization via cancan gem.