Fix use of deprecated Strings2.toString(InputSupplier)
Remove deprecated Paylods.newPayload calls
Fix minor compilation warnings