Added a method to access directly the gui from a container.

This allow to access the gui (and indirectly the window) using any widget (using widget->getParent()->getParentGui();) or using a container (container->getParentGui();).

In comparison, without this method, the user will have to write a lot of code to do the same thing (probably around 6-10 lines).