Refactored to decouple roles (conn handler, syntax)

Separated logic for
- connection handler
- thread loop
- syntax parser

Updated protocol engine to handle help messages.