Added libtuidatatypes library

Signed-off-by: Mika Tammi <mikatammi@gmail.com>
Clean away code from TUI protocol serialization

Signed-off-by: Mika Tammi <mikatammi@gmail.com>