provides support for options.replace function

This commit replaces grunt.file.expand call with grunt.file.expandMapping. It allows to use extended set of the file configuration options (see http://gruntjs.com/api/grunt.file#grunt.file.expandmapping).

This commit also adds support for options.replace configuration parameter, which allows to create more advanced configurations.