restructure and clean up project

Change-Id: Id191497a32b1df0e70a0c9ba9c4a0b5a1b808218
Reviewed-on: http://review.couchbase.org/31476
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>