refactor Razor support, decouple internal for IAppHost, allow adhoc razor generation