Only setup logging if necessary
Require Sqlalchemy >= 0.9.8

This but needs to be fixed: https://bitbucket.org/zzzeek/sqlalchemy/issue/3199/
Attachment names must be unicode