RFE: Adapt hpcviewer to use hpcclient-java's new APIs

hpcclient-java and hpcserver have major changes and the viewer requires refactoring to adapt with the new hpcclient-java and hpcserver.

Related issue: hpcclient-java#24 (moved)