Fixed and updated Gradle build file

Made the gradle build file importable into android studio using the gradle plugin. I added the ability to publish the artifacts to your local maven repository