Fix buffer corruption after resizing rows
Fix buffer corruption after resizing rows

Lines from the buffer were incorrectly being removed when the viewport was
resized. This change removes the lines when the cursor is above them, if not it
shifts the viewport down. Some basic jsdoc comments were added to some Terminal
properties for future reference.

Fixes #98
Fixes #99

cjordog/NRLWebsite,Tyriar/xterm.js,sourcelair/xterm.js,akalipetis/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,akalipetis/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,cjordog/NRLWebsite,cjordog/NRLWebsite,Tyriar/xterm.js,xtermjs/xterm.js,sourcelair/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,akalipetis/xterm.js,cjordog/NRLWebsite,akalipetis/xterm.js