bug fixes and changes

- fixed some `_handleError` bugs
- added redis connection lost handling
- integrated EventEmitter to module
- added events `error`, `connect` and `disconnect`
- optimized script loading events