Refactor NioSessionController interface and correct CoreMessageDecoder
logic.