Uses ref and xpack-ref instead of custom ones in the Painless docs for long-term maintainability.
Adds documentation for each the variables and API available with each script context usable with a Painless script.