Added client stub gateway and moved gateways

Moved the gateways to their own package and added a StubClientGateway as
a specialization for client objects.