Implement reconnect dialog

Application now attempts to reconnect to XMPP server if error occurs
after 10 second countdown. Should somehow fix the Wi-Fi related issue.