Added recursive directory creation

Made it possible for the FileWriter to create recursive directories, +
unit test for this.
Update WriterTest.php