Refactored attachments list into page macros.
Refactored revisions list into page macros.
Improved grouping of imports.