Item13079: Refactor bootstrap a bit.

Separate out the setting of file system settings from web environment
settings. Also move functions unrelated to configuation settings back
into Foswiki.pm.

Not quite ready yet to be used from tools/configure for initial
configuration.  Need to eliminate the "die" when a guess for a file
system path fails its test.