params to directives, query=anyType, standardify rpc
added note on JSON-RPC