Implementing clang-modernize changes
This adds auto, nullptr, and range-based for loops.  Many of the loops were not done automatically
This also fixes some bugs
(Does not include changes to openstudio_lib yet - clang-modernize crashed)