add Flash WebSocket support and app template