CBPS-206: Impelement JoinedDocument and RefDocument generators
CBPS-206: Impelement JoinedDocument and RefDocument generators

Field "owner" allows to join documents of this class with
ReverseLookupDocument documents.

Field "categories" allows to join documents of this class with
RefDocument documents.

Field "replies" is another reference from JoinedDocument to
ReverseLookupDocument documents.

Change-Id: I2d909415e5b7901ef57018a7570d684e69879ac0
Reviewed-on: http://review.couchbase.org/68942
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Pavel Paulau <dd88eded64e90046a680e3a6c0828ceb8fe8a0e7@gmail.com>

couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,couchbase/perfrunner