Improve basic_auth example

Some web browsers will now prompt for user name and password
Merge branch 'improve_basic_auth_example' of git://github.com/acammack/cowboy
Add a more involved REST example

A pastebin type application that can optionally highlight the output as
both text and HTML.
Merge branch 'add_rest_example' of git://github.com/acammack/cowboy
Fix Location header

Fix #414
Improve Websocket example
Merge branch 'fix_created_path' of git://github.com/nevar/cowboy
Fix examples links

Thanks to grass on IRC for the heads up.
Make sure rest_terminate is always called

Also improves error reporting.
Add an example with custom middleware
Merge branch 'add_middleware_example' of git://github.com/acammack/cowboy
Do not reset the connection timeout timer on send

Sends can be successful even if the connection is gone.
Pretty print errors if `eunit_lib` is available