Separate some template stuff out into partials, as index.ejs was getting a bit unwieldy.