Added subdomain matching capability.

If you'd like, feel free to pull this small change.

While the change is not backwards compatible due to newly introduced method parameters, adding them at the end of the parameter list didn't seem sensible :imp:

Thanks!

-phil