produce better errors in RestController

do not invoke RestController if the request url is not an object url
fixup query string in RestController such a way that is actually visible
Merge pull request #110 from pkit/minor_fixes

produce better errors in RestController