Moved entry point to separate class and changed App.xaml to ApplicationDefinition

This fixes the unresolved StaticResource occurences in all XAML files.