actions. This allows us to make sure actions and custom actions flagged to run only once, actually run only once. Also clean up some of the numeric constants in custom.c using the defined values from msidefs.h.
Reduce unneeded includes.