Cart: Adds utility method for line item discount.

Creates a public method in ItemUtils that can be used to calculate the value of a line item discount. This functionality is needed by the Purchase system when generating receipt data.

Ping @adamvoncorswant @softarn  
Sure. Updated and f-pushed...