Added rotator/generator

Passes a generator and options to the keystore's rotation handler, and some minimal testing.