- Various cleanups, style nits and restructuring
- Fixed some bugs related to action processing
- Added some action related utility functions and extended CleanActions to
  support type filtering