add gate handling plugin / rule from 1.6 version -- will need to adapt
slightly for 1.7.
add rotateAroundOrigin to BlockTools -- used for gate rule, and should
be usable for any block-based rotation