Initial support for building with gradle

Delegate all build logic to ant.  It will be possible to incrementally convert the existing logic to native gradle configuration in the future.