Web server flag

Added flag to indicate if this is being served via a web server --
useful for e.g. changing between relative & absolute links