Allow returning an error String from client#_process
Refactor out client/common/server libraries
Improve console output