Added a few features

- Auto reconnect
- Automatic JSON parsing
- Events on open, message, and error