implemented first version of JSON RPC server, updated Makefile