Finish the generation of recurring orders. Add prorating, handle product history.
Code cleanup, reorder a few functions.