Added options.php, updated config.php to load options from MySQL database.
Updated functions.php to use stored value for timeout.