Introduce static makeNativeName methods to share code with the upcoming static members.
Implement static methods (fixes #1989).
Implement static attributes (fixes #1989).
Merge pull request #2699 from Ms2ger/static-methods

Implement static IDL members; r=jdm