If an unexpected network error occurs, only the error part of the response should be printed. The complete object should be dumped only as a last resort.
The core is now a module that is loaded by the command line client. This allows the core library to be reused for testing.