[middleware] Convert text datastream to class based model

While here, import a CSVPublisher which is probably more useful to
threat automatically datas

Fix #279