Adds variable part to application ID

fixes among others app2app from two app instances on a single machine.

Jira issue: WP-878