[bug 875313] Add test for ./manage.py polint

This moves the command tests to test_commands and adds a test for polint.
It also tweaks polint so that it shows help correctly and doesn't do weird
things when run from the test suite.