The company announced a new iMac Pro, and directly targeted Amazon's Echo with the unveiling of its HomePod smart speaker.