Reintroduce threads into the UI app
Reintroduce threads into the UI app

This is done because, naturally, android doesn't support
multiprocessing, so on android (and there alone) we will use a single
background thread again.

ztp-at/RKSV