Refactored the resize method.
Fix for when the scrollback size is set to 0.
Introduced getLine() and getChildDiv() methods to reduce direct access to the this.lines and this.children arrays.
Implemented physical scrolling using the browser (instead of scrolling being faked inside term.js).

Turn on the physicalScroll option for this. Still buggy.