Moved module shared variables inside instances.

Added also a method to check policy updates and refresh PM instances.

Jira issue: WP-1168
Merge pull request #45 from smonteleone/WP-1168

Moved module shared variables inside instances.