Added a method to reset the storage between each test.
Cleaned the server end-points some more.

- Removed browser-specific code paths.
- Made the end-points return the proper 405 code and headers.
Moved the routes into specific files.
Cleaned the server code a bit.