Macros should be able to:
1) Detect they are being rendered for an export
2) Mark that certain resources are required by the export
3) Create "resource links" that the export will understand how to direct to the proper location
This fixes things like CONF-1240 where an arbitrary macro needs to add icons to the export.