MB-9504: Move couchstore to cmake

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