Added logic to read mime type from the file extension and then create
content object using that mime content type.
modified the comment for addition of nonce.
adding doc for private methods.
Merge pull request #674 from VimalDhupar/MimeTypeChangesForUpload

Added logic to read mime type from the file extension and then create