Adds nanomsg error bindings. Simplifies polling. Adds "survey-timeout" event.

The previous code would fail mysteriously on survey timeouts, which was useless.