Razor - Include CreateInstance to share code between apps

Merge branch to master