Add state_any and use it in common stuff
Add limit to concurrent curl connections