Indexed script fixes

 On Disk Scripts : Make on disk scripts re-load timing dynamically configurable.
This change adds a new resource watcher level of CUSTOM and allows the addition of custom levels of timing.
This is used by the ScriptService to register the FileWatcher.

Search Templates: Add render endpoint for rendering templates
This commit adds a render endpoint to allow rendering of templates.
````
POST /_render/template
'{
  "template":
  {
    "query":
      {
        "{{foo}}": {}
      },
    "size": "{{my_{{}}size}}"
   },
   "params": { "foo": "match_all", "my_size": 10}
}'
````
Will render
````
{
  "template" :
  {
    "query" : {
      "match_all" : {}
    },
    "size" : 10
  }
}
````

Closes #6821
leftover?