Added success and error flashes and tests, refactored application.html.erb using content_tag, removed redundant password digest error, added size parameter to gravatar_for