Fix stats computing to work with mongoDB aggregation framework and start working on real time 90 percentiles data
Clean some code