The company’s looming layoffs and its sales plunge suggest that the action-cam market may be a fad. GoPro is looking to drones and new video software to rebuild its staying power.