Wraps fs.writeFile, mkdirp and other neatness.