Clean up code to:
* remove unused dependencies
* make it java 6 compatible
* remove useless test
* remove unused resource