Tidy up imports
Add logic function and paster command to purge old entries in the package_extra_revision table