Refactored details of line wrap and message drawing, in preperation for
status window.