Add server side unit tests.

Use `grunt simplemocha` to run just the server side tests and `grunt
test` to run all the tests. The server side unit tests live in
test/server and there is an example test there for the api.