support for weekly stats starting on mondays #16

I had to refactor METRIC_KEY_PATTERNS dict into function, because of the previous import time build of the  dict, there is dynamic part now.