I got tired of rewriting this every time.
Make an install file and remove variables for uninstall. Go through and implement the API more betterly. Get analytics in the admin area.
Addthis layers module for Drupal 7. Fairly customizable, but still needs some love.