MB-9504 Transition to CMake

Change-Id: Ia99b910a5ae9b90e559f395b736288937a81e01f
Reviewed-on: http://review.couchbase.org/30228
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>