Agent now uses AsyncTask instead of Thread

Agent application finally upgraded to use AsyncTask like the User app.
Now can continue with adding real authentication and proper U2A and A2U
messaging.