Login support

Adding support for using either a username or an email field when authenticating users.  I have not fully tested the changes yet to determine that they will work properly with a default devise configuration.

Need to do more tests before finally pulling, but wanted to get the ball rolling.