WL#3178: MA Multiple Instance Handling

Affects: WorkLog-3.4   —   Status: Complete   —   Priority: Medium

MA Multiple Instance Handling.
Rewrite the logics to use the Instance Manager, remove global vars, etc