Remove unused codes about attachment
Support DownloadManager
fixes #136