Refactored and cleaned up code.
Added `connect_once` and `connect_extended`.
Better support for autocomplete with `emit`.
Preliminary tracking stuff added