Utils : Fix tablet orientation logic

Tablets have orientations for portrait reversed, this commit addresses it.
Add in a few more orientation-aware safety checks to circumvent certain devices
whose default orientation does not match their device type.

Change-Id: Idc627e687ca61ab29f08433664bf77148424bd6d
Merge remote-tracking branch 'cm/cm-10.1' into cm-10.1
Settings: IT translations

Change-Id: I898540a256e123a0077dee8d121e3a6f1b2936c1
Settings: ES translations

- Electron Bean animation
- Add NFC translation
- Reorganize some strings same as default

Change-Id: Ib5b1de46bcd40182700dad50ff0c97b44418a209
Merge remote-tracking branch 'cm/cm-10.1' into cm-10.1
Permissions Management (Settings - Security - App Security - Permissions)

- Manages permissions for downloaded apps

1/5) Fork the app (packages_apps_PermissionsManager)
2/5) Add to product packages (vendor/cm/config/tiny.mk)
3/5) Add to manifest (default.xml)
4/5) Framework/base changes
5/5) Settings: Security - App Security - Permissions

Change-Id: Ieb7700cbc1af9943c17666a5923abb0c68eb5920
Settings - add an AlertDialog before to delete APN to avoid fails

patch 1: fix blank space
patch 2: remove FR translation and change NegativeButton string
patch 3: improve the NegativeButton (thank you, David)
patch 4: remove create()

Change-Id: I3361d4160a7e1c4eaee094f08c7d212f71e9e0e7
Merge remote-tracking branch 'cm/cm-10.1' into cm-10.1