Merge pull request #18 from cizra/fileref-deletion

Added support for file deletion in FileRef
Changed FileRef upload to manage error conditions