func wantsJSON(r *http.Request, m *mux.RouteMatch) bool { return common.MostAccepted(r, "text/html", "Accept") == "application/json" }
func wantsHTML(r *http.Request, m *mux.RouteMatch) bool { return common.MostAccepted(r, "text/html", "Accept") == "text/html" }