Use OOUI confirmation dialog rather than native confirm() for switching to source editing

Per TTO on bug 51655, the implementation of confirm() in most browsers is crappy and we
shouldn't use it.

Change-Id: I755085a253c05958e4b50af57b19dab90f2f0fb6
Merge "Use OOUI confirmation dialog rather than native confirm() for switching to source editing"