Updated @Ankushg Gradle pull request with lastest working config

Built on top of @ankushg s great work, updated to work with Android Studio 2.2+ 

The data model changed breaking pre 0.4 plugin.

I've tested this and builds great! Absolutely love Gradle!