Returns only state_cart carts from cartProvider

Rebased version of #959
Fix #739
Ensure orders immutability