Remove function setMainPaths() and replace it with lazy initialization
Path.php can now be used without any initialization. All non-constant paths are initialized when they are first accessed. Paths can still be set manually but it is not necessary to use setMainPaths() at every entry point.