Change localhostOnly to modify an action.

I misunderstood how 'pass' works, which meant that localhostOnly <|>
foo would always perform foo. That's not what I want. Now, it has type
AppHandler () -> AppHandler (), which makes it more obvious what it
does.