Moved web.go related code to an external package