added custom fields handling in custom objects defined through the REST API, fixed custom types handling and the REST API for custom types, added core types (POJOs) and custom types (part of the App), fixed a bug when creating an object through the API with empty payload, fixed the way exceptions are converted to JSON responses.