Extract logic to before_filter for clarity

Statistics are now served under their own routing (i.e. under
/government/statistics/), so we should redirect any requests at
/government/publications/ their when the publication is a statistics
document.
Data migration to cleanup search index

This will remove the search index entries for the old-style publication
paths and re-index them with their new path.
Reinstate test coverage on national stats badge