move get_buckets method to base collector class

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