Complex Period Variations in the Binary System IM Aurigae