don't wait for slave to become online/don't try to reconnect slave, if
slave is offline
minor refactoring
Unified code for deleting on master and on slaves
Merge pull request #1 from kutzi/master

Some refactorings