Modified webserver code

Added a global WebRootDir variable which gives us access without having to calculate it each time