Adds proposed functionality which enhances the ability of extensions to ...

...customize line items and the entire cart composition process

Followup to https://github.com/spree/spree/pull/5062 (that PR was for 2-3-stable)
This change needs to also be made in Spree::Api::ShipmentsController#add and Spree::Api::ShipmentsController#remove.