Remove unused code

Nuke a lot of code currently not used by Couchbase.

Change-Id: Iad5818f110670eb5275859921e6775cda5d18030
Reviewed-on: http://review.couchbase.org/43444
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>