Fix within bug.

The within problem that was commented out now works properly with
proper refactoring.
Test login functionality.

With these tests, we ensure that the user must be logged in before
they can edit their profile and that the user is automatically logged
in when their account is created.
hiMerge branch 'master' of https://github.com/geisler/game_contest_server