Make sessions per gear configurable and use moving average for num sessions
Merge pull request #4438 from danmcp/master

Merged by openshift-bot