added json rpc backend for adding an interface to GUI applications