Put Gtk base overrides in a module

Improves testability and modularity
Add idle handler to Gtk.main loop