Release 0.5.0
component: fix dep
*: bump emitter to 1.0.0
polling: abort payload loop if close packet is found
polling: consider the possibility of an event changing readyState
don't wipe out writeBuffer immediately; wait until 'drain'
call onDrain() on('drain') instead of flush()
added doc for onDrain
Merge branch 'writeBuffer_clear' of https://github.com/albertyfwu/engine.io-client into writeBuffer_clear