Created tests for user stats API
Refactored pay module
Fixed payment path
Fixed app.yaml payment entry
built stats api