Setup publishing to Sonatype OSS in build.gradle

- Rework build.gradle to use old maven plugin
- Upgrade android build tools to 0.6.x
- Use android-maven-plugin instead of the built-in maven-plugin.