Added stats collection library
Merge pull request #515 from akeeba/feature/stats

Added stats collection library