Refactor cocoa classes
CocoaOpenGLView autoresize to fit the window