Use dependency management to use common versions of log4j and junit

Use a common version of junit and log4j in all projects.