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