Regex matching for node names

This patch adds naive support for regexes in hostnames in the
same format as the traditional puppet node terminus.