fix tests for auth; refactor config to support test config
add test for api; refactor errors logic to separate files
add validation of api params with Joi lib; add tests
revived user model (db) tests; split user/project tests
revived project model (db) tests - just basic crud so far
make srv tests working together: fix mock conflicts, db conflicts -- now mocha is ok
fix karma tests; now 'npm test' works again
fix logout
Merge branch 'dev'