Make UWU and UWUI event emitters

Also, move setUploadFilled parts to each of them.

I also mucked with indentation and the way we assign global class
objects, but it shouldn't be a big deal.

Change-Id: I7039eb3dc9da64d30e35775b5347033ced798c3f
Merge "Make UWU and UWUI event emitters"