Modified RunServlet to use new path segment utility instead of regular expressions.