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