From local real estate laws to finding tenants, here’s what you need to know about renting out your home.