A town in New Jersey has shut down streets to nonresidents after traffic apps began directing too many commuters through town.