Add tests around account

Changed the redirect after updating email back to the account edit
page. It makes more sense to see their update. Also added a flash.
Add test around creating a team

This also changes logging for sending emails to invited users. Since
it's not super critical if it fails (it seems), don't log in the test environment.
Add test around teams
Merge pull request #1568 from jetaggart/master

More tests