Refactored governance functions in base agents and pushed support functions into governance controller

...ons into governance controller