Tested and implemented the new REST API
Added better error-messaging in the REST gate. Added ubjson mime-type to the HTTP requests