Add action manager processor

This PR introduces an initial implementation of the processor, which is the core of the aciton manager.
Targets #235.
If I understand things right: If `slots` is bigger than the number of values on the stack, we only pop the maximum value. This should be stated in the documentation of the function, I guess.