Upgrade Gradle and build tools

Also updated .gitignore for Android Studio/IntelliJ excluded files.
Update to Facebook SDK 3.14.1