Fix initialization of new installations

Change I2615666bc1c929c0c045840fad1ece55fb0640af's upgrade scenario
only applied to installations coming specifically from version 5.
Devices with older versions or installing afresh would get invalid
initial data. Fixit

Change-Id: I170d9ef284c250767467695015bf4e57bc1454c2
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Camera2 into cm-11.0
Camera: Fix removal of histogram setting

Histogram is disabled by default in config.xml, so the code to filter unsupported modes is never executed
Remove histogram option completely when it's disabled in config.xml

Change-Id: Id47da14d7d3d268e70727d25ed8f4d431b80f6f1
Camera: Fix JPEG quality DB update

Change-Id: I4e43152d8a4a8ed689de086757bcabc17749f9c8
Camera: Fix the removal of histogram setting fix

Regroup conditionals to fix the NPE.

Change-Id: If87e5287b75a8f43c1a34f234aa0a8c405f43891
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Camera2 into cm-11.0
Camera2: Add 50MP, 37.5MP resolution entry

* Support for SuperZoom resolutions

Change-Id: I59dc102bc991c8f82b4827c9fa39da44d98cb8e9
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Camera2 into cm-11.0