make PATCH alias to PUT
Fix html formatting; default to `application/json` when no format parameter is given. Fix #466
remove already commented out obsolete print statements
Construct resource_uri from request.path as well