Fix express deprecation and unit tests.

This resolves issue #42.
As part of fixing the unit tests, I also implemented the use of the Sinon sandbox.
It's way easier to just restore the whole sandbox in your afterEach, as opposed to remembering to restore each mocked function.