New Airbnb legislation considered in Buffalo, adopted in Amherst