Broke out updating state and added event history for generating HIT/MISS header info
Added state machine compilation tests and removed runtime assertions
Use ngx.DEBUG for state machine info
Put esi into transitions