Call stats with fixes & improvements

Squashed commit of the following:

commit 1c92d43ca3e305c7c502c7d6776ff8710ea240b0
Author: Danny Baumann <dannybaumann@web.de>
Date:   Sat Feb 2 12:45:15 2013 +0100

    Squash further callstat fixes.

    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.

    Fix display of missed calls when filtering for call type and sorting by
    count.

    Cleanup code and make call data processing asynchronous.

    Allow quick pre-selection of filter range.

commit e8c460bdc478e1c8900ebc86e769aa391dfd9f37
Author: Danny Baumann <dannybaumann@web.de>
Date:   Fri Jan 18 14:33:01 2013 +0100

    Merge CallStats/Log fixes & improvements from CM

    Squashed 3 commits.

    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

    Fix display condition for minutes.

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

    Change-Id: I4f428e2b16063ab285d25c33eb6ebe2c6f769d2e

commit 4d1a0641af812192ec2e87e63e4c6412be10b9eb
Author: Gergely Szell (sethyx) <szell@hu.ibm.com>
Date:   Fri Jan 18 14:33:01 2013 +0100

    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

    Draft to avoid early kangers.

    PS2: Fix whitespaces.
    PS3: Added optional date-range filter and some comments.
    PS4: Whitespaces & small layout fixes.
    PS5: Changed date filter dialog behavior (1 action icon, 2 dialog buttons).
    PS6: OCD
    PS7: Slightly amended filter icon & more code OCD.
    PS8: Merge items with "equal" (national/international) phone numbers

    Change-Id: I94cd49e167b82bc7eaeab9225ed96a273a33b18c
    Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>

Change-Id: Iee4f2928f72c6abec5a7e62b26b2068d9e3dd465