Unify, extend and fix bugs in the built-in timeseries implementation
Unify, extend and fix bugs in the built-in timeseries implementation

- Unify:
   - Refactor instead of replicate code to get entries from one of the
     databases (standard versus analysis)
   - Ensure that the individual fixes during the previous implementation (deal
     with keys = None, avoid sorting on aggregate) are applied to both
   - have `get_data_df` call `find_entries` so that it gets the benefit of
     ongoing bug fixes
- Extend:
   - Add support for passing in a custom mapping from entry to dict to go from
     entry_list to data_df
- Fix bugs:
   - change `_to_df_entry` to support `local_dt` entries transparently
   - ensure that `extra_query_list` is actually supported correctly! It looks
     like before this, the extra_query_list was passed in while printing the
     function, but not while running the query? How did the heatmap ever work?

e-mission/e-mission-server,yw374cornell/e-mission-server,sunil07t/e-mission-server,shankari/e-mission-server,sunil07t/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,sunil07t/e-mission-server,shankari/e-mission-server,sunil07t/e-mission-server,shankari/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,shankari/e-mission-server