Initial gradle support

Initial support for gradle build system.