Bump Pillow dependency.
django_nose is optional.

Also fixes optional_modules to work without importing
(which in some cases had side-effects).
Don't send messages when e-mail is not configured.