Some rework

Change log4j configuration and remove some not needed stuff. Also use
the right java dependencies.


/cc @peterpunch