Use jsonrpc dispatcher in stead of api dictionary.
Import jedi module to register rpc methods.
Don't handle json parse errors in transport module.