Added config file sanity checking
Replaced freshen with refresh, implemented refresh timeout
Changed config file to javascript