Treat server and agent as globals for mocha
An easier way to toggle appcache on and off during testing

Export a toggle method on the server so that tests don't have to
unrequire the server.