Better device token sanitisation
Moved payload length checking to a more sensible place which solves a deadlock.
Do not remove listeners from socket to prevent uncaught errors and pre-emptively destroy to minimise EPIPE
Added some more debug information and updated the JSDoc for `connect`
Updated JSDoc to reflect API change deprecating `Notification#clone()`