Thousands of street lights are set to be upgraded across North Yorkshire in a bid to save about £300,000 in annual energy costs, help the environment and protect the dark skies.