Implements username authentication
It's now possible to login with either username or email
That's necessary to be backward compatible for iChain login
Implements iChain authentication
Merge pull request #528 from ChrisBr/devise

Implements iChain authentication