refactor: Move builder connection utilities outside of Builder class

Move _extract_handler_and_args and _builder_connect_callback into module
scope for re-use by GTK+ Composite Templates.

https://bugzilla.gnome.org/show_bug.cgi?id=701843