Reinstate class methods

This returns the `<class>.attachment_definitions` method to classes, because otherwise the attachments aren't discoverable. Its removal broke delayed_paperclip, too.