Add action manager processor

This PR introduces an initial implementation of the processor, which is the core of the aciton manager.
Targets #235.
I would embedd the `self->top` into the code below, it's not that much overhead to read.