Added FileUtils.java which contains a single method that writes a string to a file with buffering.

Used that method in YarnContainerManager.java
Merge pull request #657 from Microsoft-CISL/weimer_FileUtils

Use buffered write in YarnContainerManager