Multiunitagenda

This is to fix the ordering of Agendas gets applied by looking at the Unit Hierarchy. It also has the fix for having a unit lookup with Agenda