Downgraded language features to work with Java 6.

I let IJ reformat the source files because I don't care.
Updated gradle wrapper for 1.8.