Add masking support to 2D backend.
Merge branch 'nat' of https://github.com/mozilla/shumway into nat