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.
Merge pull request #36 from iNecas/task-for-resource

Additional scopes for searching getting tasks for actions and resources