Added generic protocol test.
Moved generic protocol tests into protocols testcase.
Introduced RPC error response.
Use attribute checking instead of type checking.
Added untested implementation of client.
Fixed one_way bug in client.
Added client tests.
Added more client tests.
Added missing exc import.