Upgrade Gradle build files
Add Gradle wrapper
Fix file selection for import

Using FLAG_ACTIVITY_NO_HISTORY will cause the file selection
to fail when KitKat's "Open from" activity opens a third-party activity.