Groundwork for JSON-RPC calls.  Need to thread application to allow for multiple listening ports, though.