Add methods for multiplexing emits and methods.
Add preferences loading/unloading.