Adding support for * in domain matching.
Closes #2
Should make #14, #8, and #7 possible.