Correctly store server port setting
Fix crash on clicking empty favorites list
Introduce new remote_port setting to store client port