Gui_element code cleanup and parenting fixes. Event system is officially working.