Implemented json error handler.
replaced json-builder in engine.json.xqy to use helper format
changed request.xqy $REQUEST-PARAM to use param:: which is consistent with naming conventions