Add Gateways config, remove requirement of Redis and Mongo, add working SQL DAOs