Moving/changing stuff from akka-clustering sample.