Add TEMPLATE_DIRS settings.
Move API to /api/v1/ and add a passthrough route to render index.html.