clean up of configuration code.
Added support for log4net
added support for log4net