Redmine#1016: proposed process_start and stop_class attributes, need lots of work

This is not ready for merging but I need to know if I'm on the right track.

Based on https://cfengine.com/dev/issues/1016