Replace rake stats with code_metrics
Stats task no longer depends on rails