Use logging for error/debug/log output and fix skipping invalid rows in CsvReader

Also made sure tests don't output stderr.
Solution for that per: http://stackoverflow.com/a/8522803
Merge pull request #15 from Wikidata-lib/fixLogging

Use logging for error/debug/log output and fix skipping invalid rows in CsvReader