Improve the JS_ReportErrorNumber and JSErrorCallback definitions.
Add proxy handler deriving from DirectWrapper and related methods, along with extended js::Class FFI.