archetype driven templates
fix capability serialization. add lookup per capability
allow archetype choosing in composer