Refactored src/server directory.
Made pagination and sorting code generic and shared by all APIs. Added tests for sorting to each API.
HTTP requests are now logged to a file during testing so the tests look cleaner.
Fixed deprication warnings from express about res.send.