Measures taken by towns, agencies and businesses in the years preceding Sandy — including using discarded Christmas trees to bolster dunes — are being credited for speeding the recovery process from the October storm, which rocked the shoreline with storm surges and inland winds.