fixed a minor mem leak
check Log::global for NULL, avoid SEGV on exit.
* FileCopyFtp.cc, FileCopy.cc: minor style changes.
* ResMgr.cc, HttpDir.cc: remove unused old code.