Build couchdb with CMake

Change-Id: If0f29acdd08ff8b148a5362f3a6fb4d6a5be901c
Reviewed-on: http://review.couchbase.org/32873
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>