Move string related functions from base/path.h to base/strings.h
Use std::function for HttpHandler.