BackupRestoreAGSSite.py - Adding web adaptor register function and cleaning up code.