fixed use of slf4j to avoid log4j dependency

Removed log4j dependency and fixed all usages to create logger according to slf4j factory. This should avoid problems when different loggers are used.