Added a consistent hash implementation which tries to be MVP/simple. Small changes to other scripts