Default to not send the app object to templates

The only case left that needs the app object is for the main
page template render, as it usually uses calls to the app method
to retrieve data. This may need more future thinking.
Pass and use the site ID and revision
Use relative paths