Improvements to host handling

* Match on host explicitly for performance
* Do not allow "foobar.com.br" to match when "foobar.com" is given
* Allow :host inside scopes to cascade (we look up until we find a host)
* Improve unit test coverage