New implementation of backup algorithm. Refs #2739

Configuration backup is executed if:
* backup file does not exist
* file list is changed (modification to include/exclude files)
* file contents is changed (md5sum doesn't match)
restore-config: fix missing perl import. Refs #2739