Disabled profile test for refactor as the initial refactoring of the projects will break it.
Refactored project api to simplify things. server.js had its formatting mangled somehow and so it has a lot of changed lines.
Updated apib file to match new project API.
Added project admin add/remove api and added lodash library calls to make array manipulation neater.
Changed the url of the add/remove user/admin api calls so they could be distinguished from each other.
Removed useless _validateProject function.
Covered even more project api test cases. Project admin add/remove now implemented.
First revision of new profile schema defined. Now a much simpler schema.
Added pagination for projects list and associated tests.
Fixed spelling mistake in config.js.
Fixed embarrassing package.json syntax error.
Adding a user as an admin to a project now removes them from user list. Adding an admin to the user list throws an error. Tidied some variable names to make things clearer.
Created tests for unimplemented device API.
Added tests for session API before implementation.
Refactored schema to fit new design.
Refactored tests to put devices and sessions under a particular project in the url. Also renamed mac address field to be more readable.
Implemented some device API methods so that first few device API tests are now passing.
Implemented session creation for the project API.
Implemented device updates API. Now using mongoose-q which makes it nicer to chain mongoose queries.
Implemented validation of updates. All currently written and enabled tests are now passing.