Add contents_grains

Also rename contents_pillar_newline to contents_newline, and to work
with all contents directives.
Merge pull request #13333 from gtmanfred/contents_grains

Add contents_grains