Added early-stage switch implementation.

Currently known to work when output not blocked. Further varification awaits...
Added check to ensure all packets are delivered/dropped correctly.
Fixed counting of sent parts of partially dropped packets.
Fixed implementation of switch.

All tests now passing.