Try to fix an intermittent failure in signing in by waiting until we've loaded the page before adding cookies
Merge pull request #230 from Standard8/fix_signout_intermittent

Try to fix an intermittent failure in signing in by waiting until we've loaded the page before adding cookies
Merge with master
Rearrange some frontend tests so that they are in a relevant describe section, and make the server autoconnect test test against the correct function.
Refactor the currentUsers and contacts handling to ensure they are always defined and to better handle the asynchronous events during loading the worker
Merge branch 'currentusers_refactor' into intermittent_fail_investigate