Fixing some bugs with events, added an RPC method to update events because their target gets changed when connecting to new networks. Also should have fixed #32
Added a socket reconnect backoff algorithm, closes #31