Add Call statistics to Contacts (Phone)

Available from the local menu in the Phone application (except from
the Dialer Fragment).

Call-type filter can be selected in the actionbar.
If all call types are selected the incoming/outgoing rates show up in
blue/green respectively.
Tapping on an item starts a new activity that shows all call types with
details for the given contact or number.

Sample screenshots: http://files.sethyx.info/aokp/call_stats_sample.png

PS1: Import from AOKP
PS2: Cleanup, avoid code duplication, avoid broken call log for
     non-English locales
PS3: Add German translation, cleanup time formatting
PS4: Fix counting issues in header when not displaying all calls
PS5: Improve layout and duration formatting
PS6: Tweak details activity layout
PS7: Show number of incoming/outgoing calls in details activity.
PS8: Allow sorting by date, move filter reset out of date picker,
     prevent invalid date ranges, cleanup
PS9: Fix derp
PS10: Reduce code duplication
PS11: Whitespace fixes, remove now unneeded drawables
PS12: Final cleanup
PS13: Fix issues in number handling
PS14: Improve call lookup
PS15: Show total call count in details, fix rounding issues
PS16: Add a scroller to details activity for lower-res devices
PS17: Improve layout
PS18: Cleanup

Change-Id: I94cd49e167b82bc7eaeab9225ed96a273a33b18c

Conflicts:
	src/com/android/contacts/calllog/CallLogAdapter.java
Fix crash of date selector.

How to reproduce:
- Open date filter
- Turn off screen
- Turn on screen
- Reopen date filter

Also move around code a bit to follow existing design patterns more
closely.

Change-Id: Ibd46a09db6c5fb4623a1ef8062af971aee0e1a60
Forward Port Direct call - optimized

Patchset 1: Fixed build

Conflicts:
	res/values/strings.xml

Change-Id: Ia3c202df9c9284b6b6fd3e45a39f7711d90ff755

Conflicts:
	res/values/strings.xml
Long click on T9 result goes to Contact details

Forward ported from CM

Change-Id: I52554c6235e532ae3c0edfb48f9f40adb28156f9
Search last dialled number Contact name [T9]

Change-Id: I448f7b24aa29e94e3f142b0ff82cadee78d7bf63
Fix NullPointerException on locale change.

Change-Id: Ib6f33c324164b4fda59a3cd3d7f00da82396e04d
If there's a contacts DB change while the dialpad is open, reload the
cache instead of dropping it.

Fixes issue #6679.

Change-Id: I1f96482c680fbc78300e57d5de40cdad88e3029f