merged develop ecc59143b9330bb3ea790ef6906aa7db339b8e2d:

Added func debug(). debug is echo, if DEBUG is defined.
merged develop: af5342e67b083d11d53ea8b892391d5bd6250bbe

Added --dry-run option.
merged develop: 7115d845c30d2b009a9411ab5bcfbebd2ecfa7ce

Added putFTP/