Added rmdirs
Updating build so it works back with maven.
1. removed unnecessary dependencies
2. moved to Java 1.7