add the code to use the new default option 'expire' for the config file
change the default value of expire to 86400 seconds

the api docs say that a value in minutes is expected here but that is
not right the value must be in seconds