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.
remove_if is clever. It can adapt to the container to implement better removal algorithms. Particularly if you change this list to a vector at some point (which you should because cache) remove_if adapts to that.