bug2issue: Add attachments export support

This patch adds attachment export support.
The github uploading support (attachments migrate) is not included in this
patch. The support of attachments uploading will be added according to the
feedback of the github developers.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>