Added support for redstone latching
fixes #856
Merge pull request #861 from worktycho/simulator

Added support for redstone latching