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.