refactor(cors): Simplify corsInfo struct
refactor(server): treat Server as an http.Handler