Add lots of front end tests!

Others:

* Change AuthErrors.toCode to accept an error object.
* Move pathToScreenName to url.js.
* Move speedTrap to a bower dependency.
* Log users who cancel login from the browser.