Pass  Session with template instead of typedef, for better testability.
Properly parameterize baud, port, ip portnum config.