Add interpolateName function and documentation

Extracted interpolation code from `file-loader` and enhanced it with regular expression support.
ehm... yes, sorry, but github doesn't notfiy me for new commits...