Module objects are now instances of Module, instead of plain objects.

This way it can have some useful methods, so it's not necessary to loop
over them or to add some properties later at random places