Molecular basis of localized responses during chemotaxis in amoebae and leukocytes