Adding a stats task to rails itself.

From 915380ad38e2a7df088014856235e401467e8a4b Mon Sep 17 00:00:00 2001