Move couchstore to cmake

Change-Id: I57d02f003c38086e3ebb3e1b243989261e26c1ef