Add hashtree function for returning all buckets.

Prototype 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.