Add deps
Fix dependency version
Wrap up template and websocket extensions
Fix ws close