Masks are now checked in setBlock instead of rawSetBlock.

Untested!!!
Snapshot restore now obeys masks again.
Merge pull request #265 from sk89q/redomasks

Apply masks before history