Some fixes to FTP and SSH deployment

Some fixes for FTP and SSH and to the web builder lib.
I still need to add the tests, I remember :)