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