Fixed dialyzer warnings and updated libraries.
Some fixes in the handler.
Fixed the upgrade process of the websocket.
Fixed header naming.
Fixed regression in channels.
Updated versions in rebar config.
Merge.