Tests for stock control
Ahah, can't modify line items after order has been :placed, hence all the cheaty tests failing.  Debug errors added
Changes to allow models changing from cart to also save line items if line items are marked as dirty
This took hours to debug.  Dirty bits being set strangely in the model
Valid all line items meet stock checks
Line items take stock when order switched to placed status