refactor: eliminate duplication of script / trace types in HTTP.Story and StateMachine.