Some more changes to logging configuration.
Cleaning up emulator.py, fixing some issues in threaded.py -
currently have extra logging in emulator.py that needs to be removed
cleaning up utils and vulnerabilities
cleaning up state
some fixes, doubtless some weird stuff in this commit but commiting
working code from yesterday as a checkpoint
Optimised 'lazy memset' implementation
heaven only knows. trying to get code synced back in and working...
Appears to be working.