JSLint improvements.
Aborting the transport before reloading, to make sure pending
/meta/connect are aborted.
Bound cometd.reload() to the beforeunload event.