Clean-up and unify terminology

Moving to BeforeInput, cleaning up Behavior, Intention, Action, adding
link to Intentions from Editing, etc