Emit connect and ready events for io instances that have reached ready state. Fixes gh-516