Added temporary CURVE debugging support

- just prints server-side failures to console
- can be improved over time, e.g. enabled at build time or
  sent to inproc debug channel
Merge pull request #898 from hintjens/master

Added temporary CURVE debugging support