store/fetch last processed BatchID in ZK

Write the last processed BatchID to ZooKeeper to use in flow planning