Add tests for timerange

Define package.json so that we can depend on mocha, jshint and test in
node