Jersey RestAPI: first batch of unit tests
 - Tested functions: create, list, get, copy, modify, delete
 - Tested elements: environments, triggers, userCommands, hardwareCommands, envObject, zones
 - Tested representations: json
 - many changes to core and model