Not waiting around for embedded struct support, do it now
Split debug into loglevel and mockdata
Take advantage of our newly acquired polymorphism by generalising the state mutation code from httpcheck