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.
The problem is that this commit is too big to begin with so is going to have problems.