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  
For consitency with all the other cart functions, I'd suggest that we return an object `Long` here