Add Jail and PermissionsMask storage wrappers

Extracted from #12086 

- \OC\Files\Storage\Wrapper\Jail: limits all access of the storage to a specific folder
- \OC\Files\Storage\Wrapper\PermissionsMask: applies a permissions mask on top of a storage

Moved to a separate PR to reduce the size of the indivual PR and makes them easier to review/merge and because @PVince81's metadata work could use the cache wrapper stuff introduced here.

cc @PVince81 @DeepDiver1975 
What format for the mask ? Is it the bits we want to keep or the ones we want to remove ? (like umask)