[PATCH v2 25/26] Task: add match() and minor rework of ControllerAPI