Added getDeliveryModuleInstance() method
Added /account/order route
Fixed CS, added orderDetails() method
Added status output variables (IS_PAID, IS_SENT, etc.)
Fixed #980, and improved CS
Fixed comments
Using now $IS_PAID variable instead of $STATUS > 2 (!)
generateOrderPdf() throws an exception instead of returning null
Moved the throw to the right place.
Added HAS_PAID_STATUS variable
Reverted inappropriate changes
Using proper module instance creation methods
Removed orderDetails() method
Merge pull request #983 from roadster31/order-details-fix

A PR dedicated to order statuses, and specially PAID, plus minor fixes and enhancements