Fix the code pushing rows into the scrollback and for appending DOM elements.
Fix the terminal size calculation to accomodate margins and padding on the rows and the DIV containing the terminal.
Eliminate some extra blank lines when appending DOM elements.
Added isScrollAtBottom() method.
Don't render the cursor if it x is just out of bounds. (Fixes a crash when running 'top'.)