Added config option to block WE outside galleries.

Fixes #37.