Added missing semicolon.
Spec has changed so events only ever consist of a name and a payload; we no longer need arbitrary-length args.
Corrected end comments.
Corrected `this` vs. `self` mismatches, and added missing `` dependency.
Stop sync service on `disconnect` or `reconnect_failed`.