Add basic email/password authentication

This is taken from Ryan Bates's Authentication from Scratch RailsCast (which is outdated but I no longer have a subscription).
http://railscasts.com/episodes/250-authentication-from-scratch

There are no tests for this yet.
Get Record tests up to speed
Small style change
Get rid of old commit messages