Rename the pointer to the current processing context.
Migrate the dialog module to processing context.

Instead of keeping data about the current processing into statis global variables, use the processing context.

Warning: this is Alpha stage, maybe unstable at this moment
Aligne to the latest changes in dialog module