Add hashtree function for returning all buckets.

Add a hashtree function for returning all buckets as an orddict to allow
for batching of requests which need to iterate all of the buckets in the
tree.