Add Requirements helper.
Allows more flexibility in e.g. the Identity requirements and unifies the checking of requirements.
One can use the script at https://code.wildfiregames.com/P265 to fix templates.
Differential revision: https://code.wildfiregames.com/D4514
Comments by: @elexis, @Stan
Fixes #6421