Modified gateways a little and added StubDaoTest

Added the StubDaoTest and moved the update method from the
IClientGateway to IGateway.