Simplify code.
Moved IDSResource::_IsEncrypted() to Resource and renamed to IsEncrypted()
Moved EncryptedStream to its own file. Use the common Resource::IsEncrypted().
Check if the resource is encrypted and decrypt it.