webtalk: make initialisation more robust

dont rely on the number of fields in struct libwebsockets_protocols,
which changes with the libwebsockets API on and off
Merge pull request #286 from mhaberler/work

webtalk: make initialisation more robust