Added logging to error handling in time_series_framework.py
Moved some statistical calculations to the server side on TimeSeriesVolumeFramework.