Expose a JSON representation of the components for a page, and add
unique identifiers for each one
Misc. clean-up