Implement v2 search for smart proxies
We need this for puppet smart proxy provider.
Possibly, it would be good to check other resources like architectures, oses or media and implement them as well. We might be adding puppet providers for those soon.
Let me know once this is merged, I will optimize our current smart proxy provider to make use of this new feature.