Multiple additions for externalizing setting of website root:
 - operating system function (not stable) to deduce what OS is being used
 - return executable's path
 - substring function (outsourced code) for parsing path
 - helper function for substring
Externalization of root
get_root function for getting root from current executable's directory. Might need changes in future for better externalization.
externalized loop into true/false function