Implemented trapped chests & others

+ Added trapped chests
* Fixed a bunch of bugs in the redstone simulator concerning wires and
repeaters
* Other potential bugfixes

I hereby present to xoft, ONE METRIC TON PRECISELY -----------------
-------------------------------  of code to review.

With thanks.
Why stop recursing? If you just add a check against powering the thing that just unpowered you you can recurse indefinitely, partially fixing #1083