ant to gradle

Replaced ant build with gradle build.

To build the project:
- get gradle from: http://www.gradle.org/downloads (tested with 2.1) and add it to path
- to package the jar: gradle assembly
- to create javadoc: gradle javadoc