template http: add websocket switcher
fix dependency order
Add redis to lua for nginx