Adding file mode option for inline, attachment or no content-disposition header

Closes #693

Defaults to no content-disposition header