Fixed wrong usage of results.is_empty().
Added much of the support for enumerating the attachments for a page.