Attempt to create states

Tried to spin off certain values in behaviour as states, and rename
object.behavior to object.behaviours, and to alter the order things are
passed to addObject et al. Big mess.