Mocha Test updates

* tests do not transfer to deploy folder
* tests can be chosen in build.json per environment
* tests on save with revert
* server validation on data types (for better testing)