implement UDA for module declaration
Merge pull request #3947 from IgorStepanov/module-attributes

[enh] implement UDA for module declaration