Updated tests.
Added general resource for basic crud.
Added editable objects.
Added some more tests and added cascading delete.