improve gravatar helper, add tests for sign up error messages, add test for sign up success flash, and clean up flash in application.html.erb by using content_tag helper