Create hierarchical module to format our json for D3

This module still needs a lot of a work but its main purpose is to make
it easy to format our records into a json format that D3 likes