gravatar_for now takes an optional size parameter
added tests for error messages and flash implementation. modified application.html.erb to have cleaner code for the flash