Changing the setTorch and setFlash function to accept AVCaptureTorchMode...

... and AVCaptureFlashMode so that we can use AVCaptureTorchModeAuto and AVCaptureFlashModeAuto in the future.