Changes needed to fix the log_events service.

Subclasses of Resource can now override a method to define the method used indetermining last-modified. Also, made the registration of Resource instancesfor model classes a little bit cleaner. Finally, added a migration to deal withcolumn rename in support of log_events.