Fix index.html template rendering

The `zapp` variable wasn't being provided to the template rendering, and
thus was failing.

There was also an issue with `auth_opts` not rendering correctly.