Clean up logging.

Add filenames/linenumbers to perror reports. Fixes #2.
Remove all non-fatal logging from production build. Fixes #4.