Fix headers warning on page plugins with custom output

Includes sitemap plugin
Extract favorites processing logic to functions
Allow 'footer' content at the end of a theme section
Allow limits in favorites selectspecs
Set up pagination for favorite questions, users and tags
Fix favorite pagination

And display of links on favorites main page