Add support for consistentid

Add a set of new functions with support for overriding the consistentid
in order to avoid using the bare hostname (or ip) as the id in the
consitent hashing ring.

This allows replacing a server with another without changing the ring
distribution if the consistentid is conserverd.