Changed application domain again, heavily simplified the entire template application.