Transition to CMake

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