Fixe regression in config update script
Refactor config file parsing into utility function
Set session timeout from configuration file (fixes #9)