Refactor State trait into Matchable trait, clean up equals implementation of {Pattern,Mixture}.Agent, replace Embedding argumant in Action.Atom classes by array, and general cleanup.