properly report test error
Merge pull request #3022 from jrgm/fix-frontend-error-report

properly report test error

Tested with both test failures and all tests passing. Operates as advertised. r+

Nice cleanup @jrgm.
Adding a code version mismatch detection feature. Fixes Issue #2710

* Hook up the code version check middleware.
* Use the BrowserID-Version header in all WSAPI requests to signal which version of the code is being used.
* Make sure all the /wsapi calls in the tests have BrowserID-Version headers
* Update version retreival to occur asynchronously.