Rearrange some frontend tests so that they are in a relevant describe section, and make the server autoconnect test test against the correct function.
Add a comment about postEvent being called twice for login-failure
Merge pull request #232 from Standard8/fix_tests

Rearrange some frontend tests so that they are in a relevant describe section, and make the server autoconnect test test against the correct function