try to make the test run faster
extract some websocket support from spellbook

written in:
https://github.com/godfat/spellbook/blob/6105e8d371ef2f839a23a7da49273ac313fd7747/html5/config.ru