Use build configuration from facebook documentation

The build.gradle in use was auto-generated by Android Studio and
differs slightly from the official documentation[1]. In an effort to
improve sanity on this project, this patch brings build.gradle as
close as possible to the recommended one.

The only differences between our build.gradle and the one in the
official documentation are:

 * android.tools.build:gradle:0.5.x so we can compile with a gradle
   release over 1.6.
 * lib/android-support-v4.jar is not used. The dependency is instead
   fetched from the internet by gradle.

[1] https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android-using-android-studio/3.0/