update generate_samples for cbdocloader & cbimport
update generate_samples for cbdocloader & cbimport

this version could be used in both cbdocloader & cbimport.
folders structure:
beer-sample/docs/beer-sampleXXX/...

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

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