Add interpolateName function and documentation

Extracted interpolation code from `file-loader` and enhanced it with regular expression support.
`arguments[3]` is a string here, but `getHashDigest` expects a number.