Added remaining grains module functions to grains states

Fixes #7900
Also fixed some typos and pylint errors.
And changed the name of ```grains.deleted``` to ```grains.absent``` to be more "stateful" as @jasonrm suggested in #12546