flatten payload for policy

allows the policy rules to run over a JSON payload.
Nestes values en up in dotted notation

Change-Id: I9a2ec870c79369d308a23cd742aaeda25400f33a