Convert a bunch of method callback prologs to a macro DEFINE_METHOD.
This removes a bunch of manual code for checking the number of
arguments, and will also allow easier changes to the prolog in the
future, for example for handling isolates.
Convert more methods to DEFINE_METHOD.
Add NSOpenGLContextWrapper::HasInstance.
Implement getFramebufferAttachmentParameter.