Main panel is now managed by the library

Removed gkSetMainPanel and gkGetMainPanel functions. The global variable
gkMainPanel can be used to reference the main panel.