Add middleware for manipulating data before writing to filesystem

Fixes issue https://github.com/shiwano/grunt-yaml/issues/4