changed callback function to return packet, index, total; updated tests ...

...correspondingly

changed callback to packet, index, total (needs to merged with the corresponding change in engine.io-client)