separate view objects for REST API from core objects

* add improved status reporting for the endpoints
Merge pull request #11 from varjoranta/master

separate view objects for REST API from core objects