Misc improvements and cleanup.

* Added a HashRing interface.
* Added the AddAll method.
* Misc test code cleanup