Migrated test_config to py.test.

Printing binary data from an unknown file is probably a bad idea. Added
code in libs.py to only print the trouble line if it's text-only. I'll
have to add unicode support in version 1.1.