Lint cleanup and make java install optional.
Add spec tests.