Have to use the same return format for functions used by apply_binding
Added missing help function
Switched from subject to name_id as key
Wrong order of arguments for construct_nameid
removed left over
context are significant
Handle that an entity might serve as more then one type of entity.
In this case an IdP that might be an AA, PDP or AQ
Added logger
removed unused argument