Setup POM for deploying to maven central repository.

Fix javadoc warnings.