Example 20: Add a ConnectionModal class that will eventually manage the connection.

Runing this won't do anything, since we haven't displayed the Modal anywhere.
Example 21: Instead of connecting when the login button is pressed, display a modalview.

This means we've gone backwards because we can't see the buddylist anymore, but fear not, it's coming\!
Example 22: Proactively deal with a couple of connection problems that we know will come up from our earlier testing.

This code is still not being called, but it will be in a second.
Example 23: Add a method to ConnectionModal that does the jabber connection and handles any errors.

This method does a lot of work, but still needs to be called on open.
Example 24: Make connect_to_jabber an open event handler.

When the modal opens, it will automatically connect and even update the label if there is failure.
Example 25: When there is a connection or login failure render a button to dismiss the dialog.

Now it's possible for the user to try again if they mess up the credentials.