Streamfs: make pios_com interface functional

Now once a file has been opened, either reading
or writing can be done by streaming with PIOS_COM.
Streamfs: add unit test coverage of PIOS_COM interface