Fixing plaintext password security issue

encrypting. Added column password_digest to table user. used
has_secure_password module. Replaced authenticate method in
session_controller. Wrote a new test and fixed one failing test.