Update client to use new Java client

While making breaking changes, also take the chance to make raw => core,
and ditch having two interfaces. The old raw version is more versatile
and offers access to the entire data structure.