For many travelers today, the best way to see a new city is to find an apartment in a hip residential neighborhood using the short-term home rental company Airbnb. But Airbnb has come face to face with a serious threat: hostility from local governments.