added user creation tests, added gravatar size, refactored flash code