WebServer: Implemented new methods registerDirectory, registerFile, registerPathHandler, registerPrefixHandler