Only load scripts if we have something to run

In particular, prevent loading ~600kb of javascript to not do anything on the homepage and new (proposed) about page.
Merge pull request #570 from alphagov/feature/restrict-scripts

Only load scripts if we have something to run