Config factors

References discussions at #283

Fix for #110 by providing cookie_path configuration option.

Fixes discrepancies between the generated configuration file and the provided configuration example.

Solves cookie_lifetime setting between new and old configs.