Add right-justify capability to the masked word wrap routine

If I turn this into a plugin I'll want to refactor this now - the entire
(simplified) routine is basically reimplemented inside it... and I guess
I would add support for center & justify as well.