Many process fixes & middle tier update

Queue Manager and mtsJSON improvements