Two Step - System for Aggregator

The Aggregator needs to prepare the page prior to any output. That is why it hooks before the header send event and prepares the page and metadata. It creates a temporary metadata page and removes it at the end.
Unique entries

When the first and last entry are the same we only need one of them.