add preprocess and postprocess priorities
rewrite processActions to make more sense and work more efficiently
improvements and more tests for preprocessors
Merge pull request #387 from innerdvations/processor_priority

add priorities for preprocess and postprocess middleware