Print error/debug/log output to stderr and fix skipping invalid rows in CsvReader

Also made sure tests don't output stderr.
Solution for that per: http://stackoverflow.com/a/8522803