Fix issue #4315

Should fix issue #4315.

Added regex matching to Config.getXXXConfig() by using Pattern.compile().matcher().find() for the wildcard search. To not break the old documented wildcards (just * not .*) there is a replacement before.

Added tests to test old and new wildcard behavior.

TODO: Check if `InstancePermission.implies()` breaks with the new matching algorithm!
I would do a null check here. There is no point on setting a null pattern matcher. 

Fail fast..