Add framework for "behaviors" and "reactions" to entities library.
Actions that emit use the Entity.emit helper.