cleanup, and added support for attachments in issue details (this will be again re-used for attachments in comment-s)