phnatomjs: Copy and use websocket.py

re: chfoo/wpull#142

websocket.py is from
tornadoweb/tornado@1c36307463b1e8affae100bf9386948e6c1b2308