Only import `settings` if we need to.
Enable async update by default when using a WSGI application.
Added tag 0.4.1 for changeset 729fa268c981