get rid of dependency on cbagent

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