Multiple realm support

Added a list container that holds all found realms.
Modified the connect method to use the connection parameters of selected
realm.