Put Connection related code into _libmadx_rpc

There are no changes in the actual code.