Merge pull request #1035 from hurtonm/master

Prefix error-reason with length in ERROR command
CURVE: Implement client-side ERROR handling