Changed project for using Gradle

Moved project structure from old Eclipse / Ant to new Gradle for ease of use. Consider uploading the library to maven central.