Add Gradle build files.

Updated `.gitignore` with Android and IntelliJ recommended exclusions.