history: updated etl process for scalablility

updated the aggregation process to perform
hourly and daily aggregations one at a time.

Added HourlyAggFailed flag to history_configuration table
when hourly aggregation failes.

Change-Id: I6d7e6f8ad7238456a1e9cd05396cce217fa02a39
Bug-Url: https://bugzilla.redhat.com/1014134
Signed-off-by: Shirly Radco <sradco@redhat.com>