Centralize dependency and mvn plugin versions. 

Centralizes most dependency and plugin versions to the top level pom.

Also avoid creating dir outside of target in index tests.