module.py: rearrange the ir.module.get_web() code
module.py: rearrange the ir.module.get_web() code

This mainly fixes the case where a module w/o a web/ sub-folder is
requested. The code is also refactored in a more procedural way,
simpler to read.

xrg/openerp-server,xrg/openerp-server