[stats] introduce stats module

see http://restx.io/stats.html for details and https://groups.google.com/forum/#!topic/restx/abZ2E2EsAuI for discussion