Cleanup handling of temporary files

- Moves the logic of creating and cleaning up temporary files (and folders) from \OC_Helper to it's own class
- Create temp files with a prefix so we can recognize them
- Let cron cleanup any dangling temporary files

For #11401

cc @DeepDiver1975 @PVince81 @th3fallen 
It allows passing oc's logger to 3rdparty libraries which use the Ps3 and we still define the interface fully within our public api