Rewrote entire Java side.

Kits, dependencies, templates, documentElements, builders and more were
introduced.