Use simple file iteration rather than xreadlines()

Works file and allows us to use StringIO in the tests.
Unit tests for Pathset classes
run_tests command in setup.py