Added a #solid mask

Works like The #existing mask, except it disregard all non-solid blocks.

(Contains a foundational commit from the redomasks branch in order to avoid merge conflicts)