Several fixes and some cleanup.
Several fixes and some cleanup.

- Removed 'cpx_hooks' references.
- Changed Mode to Acc where appropriate. (in run_hooks and trigger_hooks)
- Added leading '_' to variables that should be ignored.
- Changed apply in run_hooks to use the module instead of the mode.
- Added a final clause to run_hooks for when the list finally empties, since we should probably not explode at that point.

SkewedAspect/precursors-server,SkewedAspect/precursors-server,SkewedAspect/precursors-server,SkewedAspect/precursors-server