Indexed scripts/templates: Add docs for indexed script and templates.

These are the docs for the indexed script and templates. 
These describe both new APIs and enhancements and additions to others.