First commit of modified Replication class with costum thread factory and mutex synchronized start/stop