Add $options arg to setFileContents()

This allows optional data like content-type to be passed through to
implementation classes