[#32] set default port to 3000
[#32] reset port number to last saved port number if user cancels the settings dialog
[#32] added basic validation to make sure port entered by user is numeric