Refactored for GTK3 and introspection, added cookie handling and window position persistence.