Move global search form before_request

The global search form added to `g` in before_request must be added on
the app. If added to the blueprint, only views registered on that
blueprint will cause before_request to run. The search form is displayed
in the navbar, and therefore in every view.