A long and violent year in Chicago ended with a record number of shootings and the most homicides in two decades.