bug fixes and code cleanup
ESC[nL and ESC[nM was not erasing the bottom line in rolling region
use mutex to make sure two sftp operations are not running at the same time, which causes crash
make sftp get and scp copy is showing byte counts while in progress
term_Parse and term_Parse_XML receive length as one of the parameter, doesn't require null terminated string as second parameter any more.