Fix bugs and change configuration settings

1. Fix bug with ZK connection in ZKLogManager.java
2. Fix bug with relocating parition when error occurs
3. Move some configurations from config file to arguments
4. Refactor consumers