fix calculation of average session memory

WOStats page did show wrong or even negative numbers
better naming of method
track thread names for warn traces
minor fixes
Merge pull request #508 from darkv/statistics_patch

Wrong session memory on statistics page