Adding stream module and initial nio selector implementation