Clean up controller

Those two methods did mainly the same job twice. A quick rewrite, that could be further improved.


The class name is in the correct form already in the params, meaning all we need to do is to camelize it. If we use classify, we also do inflections, which can be incorrect ('Status' -> 'Statu')

destroy method actually deleted the entire parent document instead of erasing the document.