Garbage collect after generating each thumbnail. This fixes memory consumption problems. Put all config directives under gallery, instead of gallery_*. Fix some gallery links. Update readme.