Changed PyOpenGameUIWindow to PyGameUICommand and instead insert vgui commands into the active main menu menu (as a temporary function).
Added option for preventing to navigate away from a html page, so we don't need to do this in javascript. This way is more reliable and should prevent any navigation attempt.