Set the key for the items as the module slug.
Easier way to do this.  Just don't strip it out in the first place!
Sort requires connection last
Catch the parent item hook that's passed in.
Add in module tags output
Add in filter to catch whether a module should be displayed.
Whitespace
Move where the JSON object is output, and change it so that it always outputs an unfiltered list of the modules (if they happen to link to that page, then want to remove the filter, we can later rebuilt it in JS)