codeintel: Filter by purpose in GetConfigurationPolicies
Created by: efritz
Add options to only return configuration policies with the retention or indexing flags enabled. This will save us from having to filter out a possibly large number of policies that won't apply to the indexing or data retention jobs.