Indexed templates/scripts: Docs

These are the docs that describe the functionality of indexed scripts
and templates, the REST API and the java client API.