Server represents the JSON-RPC 2.0 server.
New creates a new Server struct.
Shutdown overrides the http.Server Shutdown method.
Start creates a new JSON-RPC server listening on the configured port.
WriteErrorResponse writes an error response to the ResponseWriter.
WriteResponse encodes the response and writes it to the ResponseWriter.