Fix ranch version in Makefile
Compile cowboy_sub_protocol behaviour before modules using it
Add cowboy:set_env/3
Merge branch 'fix_ranch_vsn' of git://github.com/nevar/cowboy