Add AsyncTask support

Add support for using AsyncTask to run background work.
Remove support for "foreground" threads and reuse the
same button position for AsyncTask.