Refactored Streams/Stream/invite message handler implementation