models cleanups
use a mixin class to declare models
get DNA sequences of logics
Merge branch 'design'

Conflicts:
	tests/simulation_and_gate.json
	tests/simulation_simple.json
	tests/simulation_toggle_switch_1.json