Add size option for gravatar. Refactor the flash implementation. Add some signup test