Add script files

Add save_state.pl which is used to generate the log containing all the files and
their associated permissions.

Add restore.pl which sets the permissions based on the pre-generated log file.

For usage instructions see README.md