Added rename support to S3 and SSH.
Fixed issue #1097.

The settings were wiped on startup.
Fixed issues with S3 not inserting the bucket name, and some cases where editing the URI would show wrong results.