Add a time property to the Attachment entity and corresponding column on ACT_HI_ATTACHMENT

This patch adds a time property to attachments. Pretty much the same as is done for comments.

It's needed to correctly sort them between other activities.

Comments apreciated.