Add \OC\TempManager to handle creating and cleaning temporary files
Use the TempManager to handle temporary files
Merge pull request #11709 from owncloud/temp-handling

Cleanup handling of temporary files