fixed pre save validations to return error objects as angular expects them. fixes also validation error for 'username already taken' which was not showing up to the user previously
adding support to validate user email address, otherwise multiple users can register with the same email address
due to the asynchornoous nature of mongoose validation we need to wrap the save() methods with a callback function so that the database connection isn't closed before validations are ran
Merge pull request #648 from lirantal/enhancement-user-model-validation-fixes

Enhancement user model validation fixes
adding more unit tests and using a discrete user object between tests so that we do not pull the user object between different states
aligning the negative test for password to only be applicable for the local passport strategy
re-structured user model unit tests to properly clean up database entities and make user objects re-usable across unit tests
adding unit test to check non-local passport strategy functionality
Merge pull request #649 from lirantal/enhancement-user-model-tests

Enhancement - user model tests improvements, re-factoring and adding more unit test coverage
seems like a developer left karma debug log level to LOG_DEBUG, returned back to original LOG_INFO level
Merge pull request #650 from lirantal/enhancement-karma-debug-mode

Seems like a developer left karma debug log level to LOG_DEBUG, returned to original LOG_INFO level
header js to be inline - still option to call script from remote source
Merge branch 'master' of https://github.com/linnovate/mean
fixing user email validation to return results not of the currently queried User object
fixing up model unit tests and adding a new test to check on saving the user with an update
Merge pull request #656 from lirantal/bug-fix-user-model-validation-tests

Bug fix user model validation tests
adding more unit tests for articles model
delay live reload when changing html
add more assertions and fix missing semi-colon on another unit test
also cover the article created field testing - added another 'should' assertion