Moved all the server mocking to it's own js file.

This way we can just hide the server.