refactoring
added logging mechanism based on syslog
added logging for the dispatcher
misc fixes
fixed compilation issues on test and in OpenNebula files