Upgrade for the Aggregator

Several bugfixes and feature improvements for the Aggregator. When the
result contains a single PDF this is now shown in the browser. If the
Popupviewer is installed it will use this.