Implemented trapped chests & others

+ Added trapped chests
* Fixed a bunch of bugs in the redstone simulator concerning wires and
repeaters
* Other potential bugfixes

With thanks.
Long term readability. Comments get out of date so should not be necessary to understand what the code is doing.  They should explain why the code is written a particular way. Like the stuff about how metas work.