Design per-agent intent & commitment query API

Based on comments @fosterlynn has previously made, there might be some complexity involved in the logic for querying intents for the offers & needs UI.

Are there some existing queries in the CommonsPub UI that we can pull into the core spec for standardisation?