Patch from Eric Norum to switch to termios callback structure and add support for changing the baudrate.