[CDAP-621] Feature/metrics ts multiple resolution

This feature is based off the branch https://github.com/caskdata/cdap/pull/760. 

Contains feature to create three time series tables (seconds, minutes, hours resolution) and ability to query at different resolution. we have a optional query param to specify resolution and we also determine automatically based on time difference otherwise.

includes config changes to create multiple time series tables.

https://issues.cask.co/browse/CDAP-621

met already many places with for loops like that. Can we extract that into a class that has keeps multiple resolutions, so that it is transparent for client code?