Improved error reporting in client and server, and fixed-up test_mantis_client.