Change java version to 1.6

Changed source and target java versions to 1.6.
Adds lots of compiler warnings that will need to be fixed at some point.