Add test for Terminal
Add terminal multiplexer

It is compatible with Frescale mux_server.