Prototype of get and getmany routes for a typical entity.
Added OAuth2 support and moved from HTML to JSON for error messages.