Allow handler implementation to track conn/req state.

Hide record for tracking request/connection state in an accessor module
Move exported types to accessor module for clarity
Update examples and README.md accordingly