fast-stats: make it work in SlimerJS

Move ``fast-stats`` npm module to lib/ and make it less dependent on NodeJS env.