[T4] Clean up appdomain code

Use the same appdomain host resolution system for ASP.NET MVC that
we use for the T4 addin. Remote just the template, not the host.
[T4] Make host use string substutions from project file

Based on a patch from Dan Shechter <dans@houmus.org>.
[T4] Allow string substitutions in Host.ResolvePath