Add proper stream receive

- Receive line by line from stream now
- Add events.c, events.h
- Add IRC_ProcessEvents