WIP: row-major everywhere; restore masks in GUI (#724,761,762)
This resolves #724 (closed) (masks ignored in GUI). This resolves #761 (closed) (confusion of row-major and column-major). This resolves #762 (closed) (line breaks in ba.int files).
This resolves #724 (closed) (masks ignored in GUI). This resolves #761 (closed) (confusion of row-major and column-major). This resolves #762 (closed) (line breaks in ba.int files).