Proof of concept JSON-RPC over promises