Implement general API to get and update entities

See the commit 22041f89df420c510db884f94b7142177b0169d1 from Library for
more information to use it.

Also simplify all web resources by using an abstract class provoding
general methods like get, update and delete.

Simplify deep creation of entites via cascade mechanism.