Adds per-shipping-method shipment handlers that can execute custom logic during the 'after_ship' shipping phase.

Fixes #5064
Make sure to associate newly built inventory units to their order
Fixes #5088
Add return item eligibility validator and associated state machine updates. Add a column to persist state transition errors
Fixes #5089
Fix syntax error.