1.7 builds, update to Gradle

First working build for 1.7. Expect a lot of small commits; going to try
and set up Jenkins :D