Improved build to work with Gradle 1.0 and made signing and publishing more configurable
Changes to make it work with r20
Applied patches for R21 of SDK