Add more test configuration flags. Minor Javadoc fixups.
WIP New-style Java bindings.