Add versionning for the script and in the JSON output
Report versions of loaded module at runtime

This has not much performance impact as it implies no I/O at all
($VERSION is searched in the symbol table).
Canonical JSON output

Object keys are now sorted for easier diff.