[SECURITY] Check permissions in all actions of ResourceStorage

The ResourceStorage omits checks for the configured user and
group permissions within the actions on that Storage.

This patch refines some naming within the security methods
as well as adding security checks to every method.

PHP file extensions are now also removed from the
text file extension list.

Change-Id: I2dbea79707cc054b6c532f3d6c250f7a05baa3e6
Releases: 6.2, 6.1, 6.0
Fixes: #51079
Security-Bulletin: TYPO3-CORE-SA-2013-003
Reviewed-on: https://review.typo3.org/23601
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[SECURITY] Add possibility to en-/disable file permission checks

For admins and for front end request, we must be able
to deactivate permission checks completely, while
it must be possible to restrict backend users
to not have any file permissions thus, not be able to
see/change any file.

Fixes: #51326
Releases: 6.2, 6.1, 6.0

Change-Id: I0f0288d52ca769acbf5d0cc06cdd896467b24fdf
Security-Commit: 49092a77f9e4f391aaf94d30501d4a2c47f60a88
Security-Bulletin: TYPO3-CORE-SA-2013-003
Reviewed-on: https://review.typo3.org/23602
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader