Add preferences dialog and common config files. Enable setting of user prefered market for data