Adds keep alive support

- Cleans up comments by removing obvious notes
- Moves "close" event to process_client