letting server process fail when exit code !=0 is passed in

used to pass in Jasmine-Node exit code to provoke fail on test failures
moved hashing into utils.js

fixed issue with re-generating the DB when userApiSpec.js loaded
moved queryResultToJson() into utils.js
added test case for missing credentials
added tests for retrieving static resources from server
fixed Code Climate issues