Add support for web to wsgi_module and improve script generation.