Cities and towns are tapping artificial intelligence and other technologies to keep tabs on short-term home-rental activity. As the effects of the coronavirus pandemic tear through budgets, some localities hope the tools can identify tax-revenue opportunities.