Fix pre/post processor issue with actionTemplate not being "thread" safe.

Fix pre/post processor issue with actionTemplate not being "thread" safe.

Clone action before using it.

Variables attached to the actionTemplate in pre/post processor are not "thread" safe.

If multiple requests happens the variables get overwritten with the value for the last request.