Fixing the adapter matching to be most-specific first.

While trying to create a custom adapter I noticed that it wasn't actually using my custom adapter, instead it was using the default adapter.

When the `get_adapter` is called there is no order for the matching so it was matching the default `https://` adapter even though I called `mount` with a `https://www.example.com`.

This change should make it always match the most specific path that matches a URL.

For example, the following mounted adapters should always match in this order:

https://www.example.com/sub/dir
https://www.example.com
https://