Sketch of necessary changes
Fixes
Fixes
Provide static members as part of class registry entry

You can now use ClassName.StaticMethodName in addition to old
ClassName_StatiMethodName. Same with attributes
Fixes
More changes
Fixes
code cleanup
Fix comments
Replace lua5-2-only method with one that exists both in lua5.2 and lua5.1
Fixed line endings