Add favicons to builder and viewer templates

This is something that's been bugging me for a long time.

Factor favicon-related markup in base.html into favicons.html so
it can be included in templates that don't inherit from base.html.