Implement non-blocking polling of sockets.

Got tired of nanomsg pegging my CPU and causing my fan to turn on. :) This uses the libuv API for socket polling directly, so nanomsg doesn't have to implement its own polling infrastructure.

This should land after tcr-survey and tcr-transform, as it was rebased off of those branches.