#24650 Added new hook formats

Adds support for the following new hook formats:


- `hook_setting: {$HOOK_PATH}/path/to/foo.py` - The path is resolved from an environment variable.
- `hook_setting: {self}/path/to/foo.py` - The path is resolved local to the app or engine's `hooks` folder.
- `hook_setting: {config}/path/to/foo.py` - The path is resolved local to the config's `hooks` folder.
- `hook_setting: {tk-framework-perforce_v1.x.x}/path/to/foo.py` - The path is resolved local to the specified bundle instance's `hooks` folder.