Fixed some issues with the emulator.
Fixed connection index dumping.
Nuked cmsg dump sorting. Doesn't make it faster, just eats less memory.
Refactored logging and console code.