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.
Merge pull request #3 from PressAssociation/support-java6

Add support for java 6.