Just render template one time in production mode, moved views to app folder, added debug option, added a lot of debug output, fixed event bugs