Remove is CMsecurity flag and display all security options by default

Change-Id: I244ba058bb4e7ced44310c14b3e971b4d19e4064
Fix lock settings pattern crash on configuration change

A helper class used in LockPatternView.onSaveInstanceState() and
.onRestoreInstanceState() wasn't set, causing to NPE settings once
a configuration change would happen while displaying lock pattern
input.

This is now set on creation.

Test case:
1) Enable rotation on device.
2) Open Settings/ChooseLockPattern preference.
3) Rotate device

Change-Id: Ic8091bc92dee2a9a23f4ddebd6de4111ec8ac318
Hardware key custom rebinding (2/2) WIP - from CM modified by LorD CLockaN for IceColdJelly

            edits to make it work:
            - added menu to Settings/Display
            - options are always visable, either you use navbar or not
            - moved from .settings.cyanognmod to .settings environment

                Settings for rebinding the actions performed on the following key press events:
                Home long-press, menu press, menu long-press, search press, search long-press,
                app-switch press and app-switch long-press.

                The available actions are: Nothing, open/close menu, recent apps switcher,
                search assistant, voice search and in-app search.

                Devices with a key configuration other than home, back, menu and search need to
                set config_deviceHardwareKeys in an overlay to have the correct preferences
                show up.

                Patch Set 1: Initial port from ICS [done by Konstantin Koslowski]
                Patch Set 2: Added 'assist' (search) key customisation
                             Option for ICS-style in-app search, in addition to jellybean-style
                             search assistant.
                             Prevented list preference summaries misaligning in the event of
                             their entries being reordered.
                             Prevented a potential NPE.
                             Moved strings.xml edits to CM10 section.
                Patch Set 3: Checkbox to enable/disable all custom bindings.
                             Home long-press defaults to no action on devices with
                             an app-switch key.

Conflicts:
	res/values/arrays.xml

Change-Id: I1b08a388513267598928d1d342912edaddeb3fcd
Screen orientation is changed, the bluetooth searching is stopped.

Change-Id: I52242a541f280db11fa525706822c824cff36031