Added support for redstone latching

Fixes #856 

Made a pull request for you.