Updated setuptools conficuration. Added ez_setup.py
refactored statistics methods
Added refersh token function