Port of the 6.x branch tested and working. This also includes the alter hooks and a slight API change to account for drupal 7's "description" property for dashboard items. It's optional but has been added to the system_stats implementation for visual.