Implement hashkey

Change-Id: I9d0af9aa8594f985d07e52379d68de3dd7386c99
Reviewed-on: http://review.couchbase.org/28982
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>