Currently, master node is set in configuration. It would be cool to implement election via ZooKeeper. Automatic reconfiguration when node fails is needed as well. Related: #75, #147