Update gradle setup

At the request of @tterrag1098

* Added maven deployment
* Added javadoc jar (Javadocs need fixing before it is activated)
* Externalized version numbers to `gradle.properties`
* Cleaned up some of the script