Refactoring FileWriter

Fixing typo and changing log line
Adding Unit Tests for FileWriter

Covering all cases in FileWriter & fixing the FileWriter according to
the UnitTests.

Comments for the Tests are still required (maybe next Check In :)

Moving the IsPathValid from AriaDownloader To HelperMethods