Create superclass for connection option dialogs

Since both the client and server have similar connection options, this
superclass will provide the common code between the two.