Use Jinja templating
Summary: Don't use string .replace(); this is more extensible when we want to add other stuff into the templating environment.
Test Plan: Manually confirmed that templating of app prefix worked in Graphiql and index views.
Reviewers: dgibson, dish, bengotow
Reviewed By: dish
Differential Revision: https://dagster.phacility.com/D7331