Added function to generate a password or key and store in local grains

It would be nice to have something similar in Pillar but I'm not sure how to approach that without an analog to the stand-alone grains file.