MB-9504: Move couchstore to cmake

Change-Id: Ie684a0b8f39873664a1c4ed2d592362c8562b8d6
Reviewed-on: http://review.couchbase.org/30241
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>