json restructured

Changes made due to the fact that in mashape POST methods JSON parameter need to be an object (dict) not an array. So instead of sending: ['obj1', 'obj2'] we have to send {'objects': ['obj1', 'obj2']} to be able to define a model.
This has allowed us to use JAXB for deserialization.