Removed _path, _method and _data as these are not used by any transport,
and added a create method that can be used as a factory for transports.
Also added a test case for the factory.