jaxrs: custom fields API bugfixes

* Fix Location header on creation
* Add more information in the JSON (the id is at least required for
deletion)

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>