refactoring
add code that will automatically return exceptions in json format when request
accept json response
working on js errors managing, auto logs them to mongo db (with day limit per ip),
override console.error method, auto-log RESTful calls errors