Additional scopes for searching getting tasks for actions and resources

Also make `DynflowTask#main_action` unprotected, as it might be useful
for getting the data from the action.