Appalachian State rallies past Chattanooga, 34-17