move log4j to test scope for both SBT and Maven

The test scope is easier to understand than optional and it
also keeps Log4j classes out of the compile classpath.
Merge pull request #14 from bfritz/log4j-optional

move log4j to test scope for both SBT and Maven