Use generic attachment table

Use generic attachment table for all attachments system-wide.
Drop thread entry attachment table