Using redis multi to improve the performance of stats.increment and stats.getAll (also added unit tes in core_stats.js).