Moved module shared variables inside instances.

Added also a method to check policy updates and refresh PM instances.

Jira issue: WP-1168