Demand-side response and user-side energy storage