Start fixing for ejabberd v13.
- upgrade and handshake implemented according to RFC-6455
- internals updated to use binary data instead of strings