New module to restore State to Project Stages

The State can be useful for action rules or record rules that operate depending on some "canonical" states.
See the README.md.