Add interpolateName function and documentation

Extracted interpolation code from `file-loader` and enhanced it with regular expression support.
When there's no `context` what should `[path]` resolve to? The absolute path of the file's parent directory?
i.e. for `/this/is/an/absolute/path/file.txt` return `/this/is/an/absolute/path/`