Add support for multiple subdomains

## Allow support for multiple subdomains

Handy when you need to deal with something like `http://integration.foo.bar.example.com` when for example `foo` and/or `bar` could change for the same application. You will be able to deal with that instead of getting `integration` only without knowing about the others