App: continue TypeScript conversion, update for WP7 support, change load order of css/js