Replaced standard file access calls to xbmcvfs.File calls.

Also changed mkdirs. The RemoveDirectory() is not completed and at this moment is not removing anything. All the local file access remains with the standard file access methods.