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
Contacts: Hebrew translation updates

Change-Id: I842e26ef99425738d017c1ce307064239e93e8bb
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
Added hungarian translation for Call statistics

Change-Id: If95add4d71767d7a62b2e04b4240bd9ae6d058db
es_ES: Added spanish translations for call statistics

Change-Id: Ie4fb939e5786e9504ea789cfdb42220e6d149fe9
Fix display condition for minutes.

Previous display: 2 hours 0 mins
Now displayed: 2 hours

Change-Id: I4f428e2b16063ab285d25c33eb6ebe2c6f769d2e
Fix threads running after entering call log, possibly affecting battery
life.

When having entered the call log or the call stats activities once, the
contact lookup thread (which wakes once per second) continued to run
even after leaving the activity.
The root cause for that was that the ViewTreeObserver obtained at
registerOnPreDrawListener() time was no longer valid when
unregisterOnPreDrawListener() was called. Fix that by storing a
reference to the observed view instead of the observer and fetching the
current observer when needed.

Change-Id: I3209712a52371f99772f522d03bc6b209272089c
Japanese: initial Japanese translation for CM10.1

Change-Id: I8348bef5fc8728f1a51b8b309e708e9b9b580d43
PT-BR: Update translations

Change-Id: I0e6b4b0b824646059c15c648310a12b83e5bfe47
Fix display of missed calls when filtering for call type and sorting by
count.

Change-Id: I771b91947ea964b8c7163ce314ce666d90cf60ab