Error handling in CRUD view

This is a revised PR from #37, only including changes in `NgCRUDView`, for simplifying the review and merge. The first two commits 5b206b5 and deaedd9 would also work in the master branch, whereas the latest one depends on changes in the `rmi` branch.

@dasf I will close the old PR, since further modifications are already merged.