Scanning QR codes is working.
Using custom events is working.
Fixed some TODOs, small refactoring, etc.