Add more debugging facilities
Send replies to handlers on deleting the session
Split handler registration from message forwarding
Rename BOSH body processing function
Refactor start_session
Log error when session not found
Add reminder about "terminate" messages
Always send stream end separately
Send item-not-found error on receiving invalid sid
More specific logging on closing socket
Fix style
Don't send rid attr on reply body
Update rid on each received request
Even more specific logging on closing a socket
Always try to send the stream end
Verify 'hold' attr on session creation request
Simplify error checking
Cleanup session creation response attributes