Refactor configuration. Move Zookeeper config to its own trait.
Initial work for task rate limiting
Add test for rate limiting