Add history module
Update notifications to use the new history module
Refactor attachments
Refactor mixins
Add mdrender module
Fixup history
Minor fixes
Fix settings