Add more loaders to macros
Currently only users and hosts can be loaded in report templates. We should allow access to all objects with safe mode defined where applicable (e.g. tokens or nics don't make sense)
Fixes #28769 - add more loader macros
There are multiple objects that has Jail defined but can't be loaded in
a sane way. This patch adds load_* macros for all such objects. It also
extracts loaders from base macros to separate file. Load macros are
defined dynamically to avoid repetition of definition and to unify
capabilities of all such macros.