Preliminary unit tests, added mocha, completed REST interface
Changed unit test framwork to Mocha, more tests, completed REST interface