Use a distinct search action for formulae
Simplify search routing

This also adds specs for the basic `/search` URLs.