Fix associated_buckets

Fix the associated_buckets function to actually return bucket names.
Reduce the copy & paste, move to common location.  Add check to index
admin test.
Merge pull request #175 from basho/bugfix/rz/associated-buckets

Fix associated_buckets