fix behavior of dealing with null usernames in phonelog
speed up phonelog reports

reduce repetitive SQL queries
make datatable-tooltip info hover work on paginated reports
speed up finding distinct device report entry types
move fast_distinct to corehq.utils.queries and fix typo
Merge pull request #3084 from dimagi/phonelog-updates

Phonelog updates