Add a setting to serve media as attachment (fixes #37)