Indexed Scripts/Templates : Add lang,_version,_id to the REST GET API.

See #7568