Factorization of the common code of RPC implementations

RPC exporters and importers share a large part of their code (dispatch,
handle, endpoint handling, ...)
Added a Pylint configuration file