Add support for config based wildcards

This commit should add proper support for config based wildcards. I'd strongly reccomend testing it before use.

Commit fixes #9 (again).