[API] Added support for versioning for the "Put Script" and "Delete Script" APIs

Related:

* elasticsearch/elasticsearch#7569
* elasticsearch/elasticsearch@a857798e1c069070e9dbc54662342d18a830bfb3