Check used port, fix #985.
Merge pull request #1006 from normanjaeckel/CheckPort

Check used port, fix #985.
fix issue #933 and Windows like line ends (CRLF)
Merge pull request #1011 from DerPate/master

fix issue #933 and Windows like line ends (CRLF)
Update to Django 1.6