Created std::streambuf wrapper around tty.
Ported server to use std::cout with the new streambuf.

Signed-off-by: Peter Atashian <retep998@gmail.com>