JSON RPC server in Scala