Fixed RSS not working with new templates.
Moved debugging code into central core.