Move framed reader/writer to its own file.