WiFi: Fixing WifiDialog issues when rotating Device

The issues fixed by this patch are:
-restoring the advanced fields of a WifiDialog a rotation.
-restoring position of the cursor and enabling/disabling of the password field
-avoiding crashes after a rotation in case like described in bz 43815.

When a dialog is displayed and a rotation occurs, the android framework
is performing this call sequence (I am probably missing some of them,
but the most important are there):
- onSaveInstanceState
- onStop
- onRestoreInstanceState
- onCreate
- onStart

I used this life cycle in order to save the state of the check boxes and
restore their effect when the dialog is recreated.

Change-Id: I54fb6b495d1c4aa571b76cd755f5d1b6c041c2e3
Orig-Change-Id: Id507a140cd3a69ccf3c662a38b8e579cd6ecaeeb
Signed-off-by: Paul Naoumenko <paulx.naoumenko@intel.com>
Signed-off-by: Jean-Marie Lemetayer <jean-mariex.lemetayer@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 30271 35749 43815 19570 23655 26175