Mixin for attachments
Goal of this MR:
- put functionality that is used in the devices-page as well as in the platforms page into a mixin
Note: currently I've just created a mixin for the attachments page and only for functions and not methods, as the methods rely too heavily on some internals of the page component itself.