#264 Fix file serving for users that are not logged in
#260 fix PDF export functionality with images in header/footer
#201 Prevent Moodle auto-linking from destroying view/field tags