Texas Gigafactory ran afoul of environmental overseers; a faulty furnace door and hazardous wastewater.