Add policy related to a new user

When a new userId is received as a parameter, a new
policy is added to the policy set

Jira-issue: WP-1158
Removed workaround for subject id attribute

Also replaced isConnected with getPZHId

Jira-issue: WP-1158
Merge pull request #7 from ccameroni/WP-1158-add-new-user-policy

WP-1158 Add policy related to a new user
Fixes related to vars shared among PM instances

Removed shared variables.
Added a method to update policy version after save.

Jira issue: WP-1167
Merge pull request #8 from smonteleone/WP-1167

Fixes related to vars shared among PM instances