Further changes to the export features

- fixed issues with some download exports not being downloaded
- eliminated some code repetition
Moved the ioc export to a component

- Less clutter
Added the component from the previous commit
Merge branch 'develop' of https://github.com/MISP/MISP into develop