Poller with native socket

Add feature to Poller to poll on native socket.

Changed the Beacon to use that instead of internal methods.