This is the lua part of the process manager.
Note that the target branch is an intermediate merge between the branches in !10 (closed) and !11 (closed). They are part of the same issue and would be merged together. This is just to separate the changes into topic areas for easier review.