Update class doc and copyright.
Update to Lua 5.2 API.

- The global table is now indexed via the registry.
- setfenv is no more.

Issue #242.