Gradle & 1.7 initial

Simply switched to the new format. Use the 1.6.4 branch if you need 1.6
code, I'll commit this every few hours as I update it.