Jersey RestAPI: first batch of fixes.
 - fixed representation issues
 - revised ResourceInterface
 - added UserCommand class
 - TODO: check String parse to objects mechanismas it still doesn't work