Prevent deletion of objects referenced by datasets

It should not be possible to delete data-groups and data-types used by data-sets.
Rename variables in test
Make name, capped_size readonly in ORM and admin

It would be a lot of work to be able to change these right now.