Moved dependencies junit, log4j and slf4j-log4j12 into test scope.

I knocked together a quick and dom4j hack to correct dependencies on junit, log4j and slf4j-log4j12. The projects don't really depend on these libraries.

Looks like a massive change but diff ignoring white space is really helpful. (sorry has to use dom4j pretty print to write output).