Get doclava build working

This update adds support for the doclava
documentation tool.

Additionally it moved common dependencies into the
root gradle.build file.