Torch: Turn off flash mode when camera is opened

* When mUseCameraInterface is used, Torch causes a lot of problems to Camera
(from opening errors to kernel panic modes, specially when acts as a widget or
lockscreen). This change is focussed on disabled the flashmode when other
app or component requests the use of the Camera.
* Expose net.cactii.flash2.TURNOFF_FLASHLIGHT filter intent to turn off the
flash mode.
* Clean up TorchSwitch class.

Change-Id: I13ef1a1d4a8282061160693d16c620148ef9cb87
JIRA: CYAN-CYAN-568
Issue: https://jira.cyanogenmod.org/browse/CYAN-CYAN-568
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
merge changes from remotes/github/cm-10.1 into master
Revert "Torch: Turn off flash mode when camera is opened"

This reverts commit 2d8816583a0ec32324c34113e22c70234050437c.
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master
merge changes from remotes/github/cm-10.1 into master