Fixed bad repeater power queuing in corner case

Repeaters remain queued to power even if their original source has since
unpowered. Also functionised and cleaned up code.
Fixed wire powering blocks beneath
Merge pull request #440 from mc-server/repeaterfixes

Fixed redstone wire and certain repeater scenarios