Revert "UART read / write operation."

This reverts commit 1c8ead79940c6aff1085be95d846e88ab6029a39.
Revert "Revert "workaround for altera lack of rw support.""

This reverts commit 573a21d4a13731c1444314f60217de4d6efb7976.
communicating on unix via fifos works.
rewrote the serial io using non buffered io.