Added task-attachment support to REST
ACT-1686: added distinct to processInstance/execution select