rewrite poller and zloop support

jzmq poll seemed to be not straightforward and was hard to implement zloop style polling.