added TempFileService and used it in FileChangeActor.
optimized TempFileDetection. Added tests.
Merge branch 'master' of https://github.com/Docear/Sync