Build fixes
Mix all ApplicationParts into main application
Remove compilation warnings
Template improvements