test_threaded.py: Refactor; check results & exceptions

Make code more readable/maintainable by factoring out common code, using
new helpers.StoredProc class, using `with` statement, etc.

Also check that results and exceptions are as expected.
Merge pull request #172 from pymssql/test_threaded_simplification

test_threaded.py: Refactor; check results & exceptions