Added gradle support

You can run the unit tests via `gradle test`. Also the tests will be run
when you run `gradle build`.