Add standard exports to the java client.

Don't include memory for now, it is non-trivial to get
cross platform.
Convention: Move constants to the top of the class body.