integrate graph module

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