API: Added onPayment function to orderItem. This is called whenever an order's payments are completed, and can be overloaded like onBeforeWrite etc.
I've also added a prevention me sure in OrderItem on setUnitPrice to stop UnitPrice being less than 0