fix loop over array

Jira-issue: WP-1246
Allow prompt decisions to be actioned after prompt timeout.

This allows a policy prompt to be actioned at a point in time after the initial prompt has timed out, e.g. from the dashboard.

Jira issue: wp-1196
Merge pull request #62 from TobyEalden/wp-1196-invite-merge

Allow prompt decisions to be actioned after prompt timeout.
Removed demo folder

Jira issue: WP-1256
Merge pull request #63 from smonteleone/WP-1256

Removed demo folder