+ added aggregation (actually resampling/downsampling)
+ consolidated query related code in query module
+ added tiny method timer utility