Cleaning up tests.

The tests for the library had all been stuffed into one file including
the express server used for testing. Now the tests are broken out by
what functionality they are testing and the express server has been
broken out to its own file as well. This should make things a little
easier to maintain down the road.