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  
And return `null` if there is no discount instead of 0.

Thoughs?