Log class is now synchronized

The method write is now synchronized. Remove todo comment in
EncodeDecoedXml
Program able to wait/sleep trying to send file

The program now creates a thread that handles the encoding and sending.
If sending fails the new thread sleeps. The main thread that handles the
scanning folder still is active and able to notice new imagefile in the
target folder
Added java-doc comments