Fix crash if CouchDB views property nonexistent.
Add PIL dependency to setup.py.
Add simple app-level logging.