Code reduction and fix saveorderajax handling.
Some more moving around and taking out debug code.
CS and clean up debugging
Fix up some things, get rid of some debugging.