Added token handling (extraction from headers) to JSON-RPC2 calls