make htcondor_module.py a pox controller component
use logging instead of simple print
fixes in logging, multithreading and lock
small import fix