Implement API-side generation of entity IDs

Fixes EDOZWO-391

Note: currently the ID of a newly created entity is extracted from the
response header's location field since JSON is not yet returned by the
API on POST /resource/namespace