Factored out tag checking to Server.Util.Happstack