Created packet processing thread, plus minor changes.

There is now a PacketFlow thread where all captured/replayed packets can be processed.