Switch code from execution-side to .xml file.

As requested by @cpeterso, background will be set in the ```dialog_upload_observations.xml``` stage.

The progress bar doesn't seem to disappear in Android 2.3 - another bug. Not sure  how to make it work.