Gradle build alternative

This pull request provides a gradle alternative to the maven build. Not absolutely everything is ported, but the essentials are.