Merge pull request #6 from psparabara/develop

fix redirection bug
move session and signup related functions and constants to a module
use a scope instead of a subdomain for admins
send form url in case sign in fails
eliminate repeated code in sign in proccess
add password reseting methods
add admin password reseting views
add admin password reseting routes