XWIKI-10411: Add API to generate/verify signature of any macro blocks and make script macro signable

- minor improvement in naming and comments
- add @Unstable annotations