changed the way linked resources were inserted in the response to better match the specification: still need to support empty relationships and one-to-many relationships
improved the handling of database errors
removed useless dependency
set up the PUT requests handler, really closer to a draft than to the final code