Make log4j an optional dependency

...as it is in the main elasticsearch pom.xml. This is useful for people who want to use slf4j/logback instead of log4j.