Unify all mods on the C&C order button logic.

The original ra-derived logic was completely bogus, and had been mostly obsoleted by newer widget improvements.  This unifies the four mods on the C&C logic to remove duplication and improve flexibility.