fix(legal): fix rendering of legal pages when loaded directly via url

I refactored the template fetching so that we can use it from the route handler when rendering pages dynamically and from the grunt task when generating pages statically.

Fixes #1372.

@shane-tomlinson r?
These are now run as part of `l10n-generate-pages`, since it depends on them.