Fix for gradle build script. Updated gitignore.

Added missing buildscript section and missing dependencies to build.gradle. Updated .gitignore to include Gradle and Android Studio files.