Add gradle build script.

This would be useful for people using Android Studio.