DEV: Add support for profile-based jinja template overrides.

Adds support for a `/templates` directory in ipython profiles that can override the default jinja templates.

Proposed solution for https://github.com/ipython/ipython/issues/6856