Pass options to io.listen()

Fix for issue #1