Added pre/post processor hooks

Signed-off-by: Mansour Behabadi <mansour@oxplot.com>