Replacing maven with gradle

The gradle config is a lot more manageable than the Maven config. Gradle can also replace the current Rake-based packaging process.

This is mostly @crasu's work on #60, with a few additions.