Add recursive subdomain wildcard support

This replaces the domain functionality with a recursive wildcard check, so we can do things with subdomains!

Tagging @doomspork for review