report back actual port when using port 0
Merge pull request #631 from ericfrederich/actual_port

report back actual port when using port 0
Fixed/reverted broken pull request #631
fix #633: SimpleTemplate \% dropping leading space

Thanks @rpuntaie
Workaround for #632: PyPy incompatible to CPython re-module.

This is fixed already in PyPy HEAD thanks to "arigato".
Add PyPI badges

Add small PyPI badges with download, version and license information.
Merge pull request #634 from FedericoCeratto/patch-5

Add PyPI badges
Suppress ResourceWarning unclosed socket message

When working with Python 3.3 and the `debug` parameter set to `True`, the default wsgiref server will emit a `ResourceWarning: unclosed <socket.socket object, fd=3, family=2, type=1, proto=0>` message when using ctrl+c to stop the server.

This change explicitly closes the server when ctrl+c is detected, preventing the warning from being displayed.
_hkey in WSGIHeaderDict for unification
Merge pull request #650 from patamushta/master

_hkey in WSGIHeaderDict for unification
Fix except syntax for Python 2.5
Merge pull request #648 from wbond/master

Suppress ResourceWarning unclosed socket message