Move app code into lib
Add tests for app
Tidy up test
Move timeRequest onto test server
Add license to package.json