Export chat in the background thread

Implemented #136 via AsyncTask. Need to utilize fragments to avoid activity leak on configuration change.