Move document check to before_action filter
Move document check to before_action filter

Handle a 404 for a non-existent document in a before filter to keep
exceptional behaviour out of the normal logic.

Also extract a `document` method to fetch the document object.

alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend