Make terminal output behaviour consistent.

- All output from Term.write() is now enclosed in a <div class="output-block">
- No more blank line between output blocks