list_dir() now takes regex refs and lists of regex refs for matching against either/or/both files and directories; included in this commit is a proof-of-concept script in misc/ that demonstrates the new pattern matching.  the old pattern matching mechanism for list_dir() will now be deprecated and soon excluded from the documentation entirely