Corrected bug in createHandler() used to transfer keys. Bug woould have
a node to transfer to itselft if itself there is 1 online node.
-Refactoring long method hasReplicaChanged() for clarity.