Handling of custom errors and more...

Generalizes error handling in the server module (jsonrpc2) to support custom 'application-defined' errors  and some minor changes and corrections in the client module (jsonrpc2_client). The client should still be considered experimental.