New Jersey is drafting guidelines to help its more than 500 municipalities make decisions about the development of warehouses within their borders, as localities across the country grapple with a surge of projects that critics complain increase traffic, pollution and the loss of open space.