Extracted server configuration to a separate class, added check for request URI maximum length