Promote all cmake stuff to toplevel, move the others down

Change-Id: Ie6a8b8f18d1e382202b5da6619c3d3c37877bfb4
Reviewed-on: http://review.couchbase.org/32592
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>