Card #30 - migrates attachments controller to twisted