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?
Is `r` used?