modify from simpleFTPUploader

improve the code for uploading and downloading
prevent crash
loging when upload / download

source:
https://code.google.com/p/eyewriter/
https://code.google.com/p/eyewriter/source/browse/trunk/drawingAppDevPub
lic/src/eyePlotterTestApp/simpleFtpUpload.h
example

upload and download example