add logging support, fix classpath issues

contextClassloader needed to be manipulated to make classloading when
using hibernate work properly

logging is now supportted