gkeys: Add refreshkey action and support code
gkeys/checks.py: Fix bug in expiry check
gkeys/lib.py: Some small code cleanups