Upgrade to the latest gradle version as required by Android Studio 0.5.X

Also updates build tools version.