Header definitions now provided by a struct instead of lots of strings

Introduce mechanism for disabling log fields at logging-start
Remove a div/mod from handleBlackbox()
Bring code required to be executed upon state transitions into a central
setState() routine.