make function more flexible and work with different master-ips and status
track connected status and re-init subsystems on new master

keep track of self.connected and re-init the zmq-context, poller and
socket, if connecting to a new master
fix event-cal to be correct dict