Move keygen params in to config.js.

Make the keygenParams in keygen optional.
Tidy.