Start using CMake

Change-Id: Iad199f8bf48419846aaea3d0e46f4a15cb06f2d1
Reviewed-on: http://review.couchbase.org/26543
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>