Added shouldMockFiles flag. This makes it possible to either setup a set of mock files using the 'files' property or by using writeFile/createDir methods. Did also add corresponding tests
Added this.shouldMockFiles check in writeFile method
Cleaned up some finally methods and removed some blank lines
Merge pull request #480 from andwaal/master

Possiblity to mock files/directories and file content