Make sure socket is passive once we've done with loop handler

It is sometimes important to make a socket passive as it was initially
and as it is expected to be by cowboy_protocol, right after we've done
with loop handling.
Improve pastebin example

Reject more malicious paths.
Add a web server example

Explore re-routing in middleware.
Add EventSource example

Port from extend/cowboy_examples.
Merge branch 'pastebin_example' of git://github.com/acammack/cowboy
Merge branch 'web_server_example' of git://github.com/acammack/cowboy
Merge branch 'eventsource_example' of git://github.com/acammack/cowboy
Merge branch 'fix/loop_socket_passive' of git://github.com/keynslug/cowboy
Add sub protocol behaviour
Fix {suspend, ...} specs to use atom() for function name
Merge branch 'sub_protocol-behaviour' of git://github.com/fishcakez/cowboy
Merge branch 'fix-handler-spec' of git://github.com/fishcakez/cowboy
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
Added warn compile options. Fixed compile warnings.
Merge branch 'fix-warnings' of git://github.com/Egobrain/cowboy
Update AUTHORS
Update CHANGELOG