add LogReader base class containing default query_*_mean implementation
refactor timerange_query test
query_timerange_mean test