Adding websockets support. Fixing #2.