return $.extend(@apiPromise, fileInfo) instead of fileInfo from file.done
move .preview() to fileInfo instead of returninig promise from promise
dialog.uploadDone()
Merge pull request #98 from uploadcare/changes-in-api

changes in API