Internal refactoring

Pass around a request context proplist [{request, Req}, {session_id,
SessionID}] instead of the two values separately