Added trac-admin command to seed subscriptions

Circular dependencies prevented the database upgrade from _nicely_
handling the creation of subscriptions for existing resources, so all
logic and code has been moved to a new `subscription` module. Various
routines for creating subscriptions have been extracted into standalone
methods, and the code refactored to use objects instead of direct
database queries.