allow priorities for action preProcessors and postProcessors
adds api.actions.addPreProcessor and api.actions.addPostProcessor function that can be used instead of pushing directly onto an array.