port the autodetection of site_url from the sqlite-fixes branch into this branch
port the autodetection of site_url from the sqlite-fixes branch into this branch

torinfo/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits