Merge branch '2686_master_cleanup'
* 2686_master_cleanup:
Modified "Configure options" dialog for better look'n'feel.
Fixed user defined home dir, if home dir contain tilda (~/)
Fixed memory leak in lib/serialize.c
Move type and function declarations.
(mc_config_normalize_before_save): fixed possible memory leak.
(history_put): unused. Removed.
Fixed double declaration of midnight_dlg variable.
Moved declaration of old_esc_mode_timeout variable to the proper file section.
More type accuracy
(tty_lowlevel_getch): used in lib/tty only.
Type accuracy.
Fixed panel type replacement.
Ticket 2686: Code cleanup