Add support for java 6.

This changes the source and target versions to be 1.6 and removes all the java 7 language features used in the code, just diamond operators.