Add interpolateName function and documentation

Extracted interpolation code from `file-loader` and enhanced it with regular expression support.
I didn't look too much into this part, just took it over from `file-loader`. What should `context` be?