Add support for meta options for modules.

This is preliminary patch that enables meta options for modules
which would simplify complex options passing.