[IMP] Cache bundles in ir.attachments instead of a LRU

Forward ported from 8.0's commit: 8402625
[FIX] mail: bad test
[IMP] hr: strenghtening of write()
[IMP]Export Wizard: new design using bootstrap, convert dialog to widget, disable removing fields from export column and added sorting method