add the javadoc to the site
fix the javadoc links
Add the dist jar to the site.

Had to move the `apply` for the `site.gradle` file to the
last line so it could depend on the `makeDist` task.
fix the ghpages task to use the site output