Calculator: Digit grouping (and other things)

-Digit grouping (in settings, US Locale only)
-Lock graph page (in menu, on graph page)
-Disabled button state (for 2,3,4,5,6... in Binary)
-Functions enabled in matrices (ie: sin, cos)
-Delete/Clear in widget
-Widget saves to history

-Bugfix where decimals in matrices in languages with comas would fail

Conflicts:
	res/values/cm_strings.xml

Change-Id: Ibf684925efff8b54e03a24b4fb6df1f1a27910e4
Calculator: Fix bin and hex modes and improve logic

* Fix buttons status when changes from all base modes in all the layouts
* Improve view id search logic (find all ids, not only the first)
* Fix overflow in hex conversion (author Will Harmon)

Patchset 2: Revert "do not allow floating numbers in hex and bin modes"
            Allow dot in banned resources
Patchset 3: Allow matrix in bin and hex modes

Change-Id: I2fbf4e7b6a398992a3e3688d9d53851bfdcd4be1
JIRA: CYAN-1817
Issue: https://jira.cyanogenmod.org/browse/CYAN-1817
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>