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.

@raymondfeng FYI. Feel free to review and comment. If you find anything to fix/improve, I'll implement changes in a new pull request.